[llvm-commits] CVS: llvm/lib/Bytecode/Reader/InstructionReader.cpp

Misha Brukman brukman at cs.uiuc.edu
Wed Apr 28 10:32:02 PDT 2004


Changes in directory llvm/lib/Bytecode/Reader:

InstructionReader.cpp updated: 1.71 -> 1.72

---
Log message:

Squelch compile-time warning (profile build).


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff -u llvm/lib/Bytecode/Reader/InstructionReader.cpp:1.71 llvm/lib/Bytecode/Reader/InstructionReader.cpp:1.72
--- llvm/lib/Bytecode/Reader/InstructionReader.cpp:1.71	Tue Apr 27 13:24:38 2004
+++ llvm/lib/Bytecode/Reader/InstructionReader.cpp	Wed Apr 28 10:32:09 2004
@@ -310,7 +310,7 @@
       if (!TopTy) throw std::string("Invalid getelementptr instruction!"); 
 
       unsigned ValIdx = Args[i];
-      unsigned IdxTy;
+      unsigned IdxTy = 0;
       if (!hasRestrictedGEPTypes) {
         // Struct indices are always uints, sequential type indices can be any
         // of the 32 or 64-bit integer types.  The actual choice of type is





More information about the llvm-commits mailing list