summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AggressiveAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-06-02 15:29:36 +0000
committerJim Grosbach <grosbach@apple.com>2010-06-02 15:29:36 +0000
commit086723d244952aee690a8aa39485a0fa0d3a7700 (patch)
treee41a55b3ec8b9a1a54498060fd226dc34f53a6b4 /lib/CodeGen/AggressiveAntiDepBreaker.cpp
parentb26f27969ec895ff14f755e70f3a205460e96cf2 (diff)
downloadllvm-086723d244952aee690a8aa39485a0fa0d3a7700.tar.gz
llvm-086723d244952aee690a8aa39485a0fa0d3a7700.tar.bz2
llvm-086723d244952aee690a8aa39485a0fa0d3a7700.tar.xz
Not all entries in the range will have an SUnit. Check for that when looking
for debug information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AggressiveAntiDepBreaker.cpp')
-rw-r--r--lib/CodeGen/AggressiveAntiDepBreaker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AggressiveAntiDepBreaker.cpp b/lib/CodeGen/AggressiveAntiDepBreaker.cpp
index 84b226b3d0..727e8f9628 100644
--- a/lib/CodeGen/AggressiveAntiDepBreaker.cpp
+++ b/lib/CodeGen/AggressiveAntiDepBreaker.cpp
@@ -909,6 +909,7 @@ unsigned AggressiveAntiDepBreaker::BreakAntiDependencies(
// information related to the anti-dependency register, make
// sure to update that as well.
const SUnit *SU = MISUnitMap[Q->second.Operand->getParent()];
+ if (!SU) continue;
for (unsigned i = 0, e = SU->DbgInstrList.size() ; i < e ; ++i) {
MachineInstr *DI = SU->DbgInstrList[i];
assert (DI->getNumOperands()==3 && DI->getOperand(0).isReg() &&