gallivm: Rename variable info to opcode_info.
authorVinson Lee <vlee@vmware.com>
Sun, 25 Apr 2010 09:04:13 +0000 (02:04 -0700)
committerVinson Lee <vlee@vmware.com>
Sun, 25 Apr 2010 09:04:13 +0000 (02:04 -0700)
Avoid hiding existing variable already named info in outer scope.

src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index aed1d583cb25a33b728022a752c8e86f2024f911..16741e41c8dcc4fa59e65d3a1b569407cb369b58 100644 (file)
@@ -1809,10 +1809,10 @@ lp_build_tgsi_soa(LLVMBuilderRef builder,
       case TGSI_TOKEN_TYPE_INSTRUCTION:
          {
             unsigned opcode = parse.FullToken.FullInstruction.Instruction.Opcode;
-            const struct tgsi_opcode_info *info = tgsi_get_opcode_info(opcode);
-            if (!emit_instruction( &bld, &parse.FullToken.FullInstruction, info ))
+            const struct tgsi_opcode_info *opcode_info = tgsi_get_opcode_info(opcode);
+            if (!emit_instruction( &bld, &parse.FullToken.FullInstruction, opcode_info ))
                _debug_printf("warning: failed to translate tgsi opcode %s to LLVM\n",
-                             info->mnemonic);
+                             opcode_info->mnemonic);
          }
 
          break;