diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-09 22:22:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-09 22:22:10 +0000 |
commit | e9e326e2eb223ea4bc6762a099ce3c314e4daedb (patch) | |
tree | dbcd02706d89847644c105f944d6d41955690f3c | |
parent | 7fa84b70c330168292f36f2757b466e288a9189f (diff) |
Tolerate more errors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14104 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 72caa80b5b..3484d3976e 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1310,7 +1310,8 @@ int SlotMachine::getSlot(const Value *V) { ValueMap::const_iterator FVI = FI->second.map.find(V); // If the value doesn't exist in the function map 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); // If we didn't find it, it wasn't inserted if (MVI == MI->second.map.end()) return -1; |