From 1846321345fefa1907fde229d6604fb9131ad319 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 28 Apr 2004 15:32:09 +0000 Subject: [PATCH] Squelch compile-time warning (profile build). llvm-svn: 13228 --- llvm/lib/Bytecode/Reader/InstructionReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp index 5033a326b601..9bc27c7ff66f 100644 --- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp +++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp @@ -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