Tolerate more errors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14104 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-06-09 22:22:10 +00:00
parent 7fa84b70c3
commit e9e326e2eb

View File

@ -1310,7 +1310,8 @@ int SlotMachine::getSlot(const Value *V) {
ValueMap::const_iterator FVI = FI->second.map.find(V); ValueMap::const_iterator FVI = FI->second.map.find(V);
// If the value doesn't exist in the function map // If the value doesn't exist in the function map
if ( FVI == FI->second.map.end() ) { if ( FVI == FI->second.map.end() ) {
// Look up the value in the module map // Look up the value in the module map.
if (MI == mMap.end()) return -1;
ValueMap::const_iterator MVI = MI->second.map.find(V); ValueMap::const_iterator MVI = MI->second.map.find(V);
// If we didn't find it, it wasn't inserted // If we didn't find it, it wasn't inserted
if (MVI == MI->second.map.end()) return -1; if (MVI == MI->second.map.end()) return -1;