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:
4f28c1c
)
Temporary workaround for an i386 crash in LiveDebugVariables.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Thu, 13 Jan 2011 21:28:55 +0000
(21:28 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Thu, 13 Jan 2011 21:28:55 +0000
(21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123400
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveDebugVariables.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveDebugVariables.cpp
b/lib/CodeGen/LiveDebugVariables.cpp
index 1eab6bb7ec81df5362271d8ace6901bb6888fd1b..5e8e30959c9c1c7cebb783d756605ccd8fa98b82 100644
(file)
--- a/
lib/CodeGen/LiveDebugVariables.cpp
+++ b/
lib/CodeGen/LiveDebugVariables.cpp
@@
-591,7
+591,8
@@
findInsertLocation(MachineBasicBlock *MBB, SlotIndex Idx, DebugLoc &DL,
// Don't insert anything after the first terminator.
MachineBasicBlock::iterator Term = MBB->getFirstTerminator();
- if (Term != MBB->end() && Idx >= LIS.getInstructionIndex(Term)) {
+ if (Term != MBB->end() && !LIS.isNotInMIMap(Term) &&
+ Idx >= LIS.getInstructionIndex(Term)) {
DL = Term->getDebugLoc();
return Term;
}