summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-04-28 15:32:09 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-04-28 15:32:09 +0000
commit1846321345fefa1907fde229d6604fb9131ad319 (patch)
tree54f7e72257d4c4b69659de55edb5494b1caf1d95 /llvm/lib
parent4685e26bc798fe835cf2ba24eb6c32f17ac8f809 (diff)
downloadbcm5719-llvm-1846321345fefa1907fde229d6604fb9131ad319.tar.gz
bcm5719-llvm-1846321345fefa1907fde229d6604fb9131ad319.zip
Squelch compile-time warning (profile build).
llvm-svn: 13228
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
index 5033a326b60..9bc27c7ff66 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
OpenPOWER on IntegriCloud