summaryrefslogtreecommitdiffstats
path: root/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
commit500acf72ccbe066cc6bd1ccc8ae88385facb9e79 (patch)
tree11f711bef855b055c628d392a86be142cdebfe3d /lib
parent5cf1acff3c32e52d79ea8b0b47e341d4e975ed8c (diff)
downloadexternal_llvm-500acf72ccbe066cc6bd1ccc8ae88385facb9e79.zip
external_llvm-500acf72ccbe066cc6bd1ccc8ae88385facb9e79.tar.gz
external_llvm-500acf72ccbe066cc6bd1ccc8ae88385facb9e79.tar.bz2
Squelch compile-time warning (profile build).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Bytecode/Reader/InstructionReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp
index 5033a32..9bc27c7 100644
--- a/lib/Bytecode/Reader/InstructionReader.cpp
+++ b/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