Squelch compile-time warning (profile build).
authorMisha Brukman <brukman+llvm@gmail.com>
Wed, 28 Apr 2004 15:32:09 +0000 (15:32 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Wed, 28 Apr 2004 15:32:09 +0000 (15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13228 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/InstructionReader.cpp

index 5033a326b601e27fda098b9dcd3cbc7b91400c0d..9bc27c7ff66fee098ffa8d6641f775afd476570d 100644 (file)
@@ -310,7 +310,7 @@ void BytecodeParser::ParseInstruction(const unsigned char *&Buf,
       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