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
This commit is contained in:
Chris Lattner 2002-08-19 16:48:21 +00:00
parent 1967c7e9a3
commit 63c58a496a

View File

@ -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");