summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-11 12:34:27 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-11 12:34:27 +0000
commit65ba95ebf9a8b71c62c2acf20a0019d30536a025 (patch)
tree2bafdbc38f28fe64ea205bf39a569a7b9aca7722 /llvm/lib/CodeGen
parent100150f59df15140280f198cf0497c4c4f80fd8b (diff)
downloadbcm5719-llvm-65ba95ebf9a8b71c62c2acf20a0019d30536a025.tar.gz
bcm5719-llvm-65ba95ebf9a8b71c62c2acf20a0019d30536a025.zip
Stack Coloring: Dont crash on dbg values which use stack frames.
llvm-svn: 163616
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/StackColoring.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index dbfa4bb22bc..6df932c1ae0 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -523,10 +523,12 @@ void StackColoring::remapInstructions(DenseMap<int, int> &SlotRemap) {
// the calculated range then it means that the alloca usage moved
// outside of the lifetime markers.
#ifndef NDEBUG
- SlotIndex Index = Indexes->getInstructionIndex(I);
- LiveInterval* Interval = Intervals[FromSlot];
- assert(Interval->find(Index) != Interval->end() &&
+ if (!I->isDebugValue()) {
+ SlotIndex Index = Indexes->getInstructionIndex(I);
+ LiveInterval* Interval = Intervals[FromSlot];
+ assert(Interval->find(Index) != Interval->end() &&
"Found instruction usage outside of live range.");
+ }
#endif
// Fix the machine instructions.
OpenPOWER on IntegriCloud