[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 9 17:28:01 PDT 2004
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.138 -> 1.139
---
Log message:
Tolerate more errors
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.138 llvm/lib/VMCore/AsmWriter.cpp:1.139
--- llvm/lib/VMCore/AsmWriter.cpp:1.138 Wed Jun 9 14:41:19 2004
+++ llvm/lib/VMCore/AsmWriter.cpp Wed Jun 9 17:22:10 2004
@@ -1310,7 +1310,8 @@
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;
More information about the llvm-commits
mailing list