Fix bug: test/Regression/Assembler/2002-08-19-BytecodeReader.llx

llvm-svn: 3384
This commit is contained in:
Chris Lattner 2002-08-19 16:48:21 +00:00
parent cdd2f12eb1
commit ebf7d3b8ff

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