projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fa84b7
)
Tolerate more errors
author
Chris Lattner
<sabre@nondot.org>
Wed, 9 Jun 2004 22:22:10 +0000
(22:22 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 9 Jun 2004 22:22:10 +0000
(22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14104
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 72caa80b5b337f67f55c368072ebd83959b9c701..3484d3976e3c48c1b839d5d77706ce5a287389b4 100644
(file)
--- 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;