diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-06-02 15:29:36 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-06-02 15:29:36 +0000 |
commit | 848548300d91841d07ce34e845a794dae0f9c6a6 (patch) | |
tree | 174197162275d189dd129d19263e441ab0efdb2e /llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp | |
parent | 598342accf2b79ceb74bbfe9432f9ef5ed205fb0 (diff) | |
download | bcm5719-llvm-848548300d91841d07ce34e845a794dae0f9c6a6.tar.gz bcm5719-llvm-848548300d91841d07ce34e845a794dae0f9c6a6.zip |
Not all entries in the range will have an SUnit. Check for that when looking
for debug information.
llvm-svn: 105324
Diffstat (limited to 'llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp index 5eabe655704..42cc44812de 100644 --- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp +++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp @@ -530,6 +530,7 @@ BreakAntiDependencies(const std::vector<SUnit>& SUnits, // related to the anti-dependency register, make sure to update that // as well. const SUnit *SU = MISUnitMap[Q->second->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() && |