summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SlotIndexes.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2013-02-23 10:25:25 +0000
committerCameron Zwarich <zwarich@apple.com>2013-02-23 10:25:25 +0000
commit63acc73f21fcfb65c06847057a1cd03d02bb7218 (patch)
tree78c7ce1d40f4793f1f17bfdd164fc39fc1c13771 /llvm/lib/CodeGen/SlotIndexes.cpp
parentba0bda9739214627e5d927fd0a16a072f7dcd56c (diff)
downloadbcm5719-llvm-63acc73f21fcfb65c06847057a1cd03d02bb7218.tar.gz
bcm5719-llvm-63acc73f21fcfb65c06847057a1cd03d02bb7218.zip
Make some fixes for LiveInterval repair with debug info. Debug value
MachineInstrs don't have a slot index. llvm-svn: 175961
Diffstat (limited to 'llvm/lib/CodeGen/SlotIndexes.cpp')
-rw-r--r--llvm/lib/CodeGen/SlotIndexes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp
index f2937941ee9..20049a89d15 100644
--- a/llvm/lib/CodeGen/SlotIndexes.cpp
+++ b/llvm/lib/CodeGen/SlotIndexes.cpp
@@ -208,7 +208,7 @@ void SlotIndexes::repairIndexesInRange(MachineBasicBlock *MBB,
for (MachineBasicBlock::iterator I = End; I != Begin;) {
--I;
MachineInstr *MI = I;
- if (mi2iMap.find(MI) == mi2iMap.end())
+ if (!MI->isDebugValue() && mi2iMap.find(MI) == mi2iMap.end())
insertMachineInstrInMaps(MI);
}
}
OpenPOWER on IntegriCloud