diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-19 16:48:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-19 16:48:21 +0000 |
commit | 63c58a496ac0af394ba2b1b52275ea9bf6097c06 (patch) | |
tree | deecfc64e11ef0d7bdd5b57d81bf6ba6d01feed8 /lib | |
parent | 1967c7e9a3192833e0e0ed61878ca3cc000879e1 (diff) | |
download | external_llvm-63c58a496ac0af394ba2b1b52275ea9bf6097c06.zip external_llvm-63c58a496ac0af394ba2b1b52275ea9bf6097c06.tar.gz external_llvm-63c58a496ac0af394ba2b1b52275ea9bf6097c06.tar.bz2 |
Fix bug: test/Regression/Assembler/2002-08-19-BytecodeReader.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index df13360..3fb2530 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -208,7 +208,8 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, if (!(C = dyn_cast<Constant>(Val))) return true; BCR_TRACE(5, "Constant Found in ValueTable!\n"); } else { // Nope... find or create a forward ref. for it - GlobalRefsType::iterator I = GlobalRefs.find(make_pair(Ty, ArgValSlot)); + GlobalRefsType::iterator I = + GlobalRefs.find(make_pair(ArgTy, ArgValSlot)); if (I != GlobalRefs.end()) { BCR_TRACE(5, "Previous forward ref found!\n"); |