diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-04-09 01:30:15 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-09 01:30:15 +0000 |
| commit | aa3b55f842b85933122166a4213487e377fbf7c5 (patch) | |
| tree | b69736ca47eb67a53b99c410707ae75216560038 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | |
| parent | ce8e881dc3a2f245d5541a36e1647e135c21b6e3 (diff) | |
| download | bcm5719-llvm-aa3b55f842b85933122166a4213487e377fbf7c5.tar.gz bcm5719-llvm-aa3b55f842b85933122166a4213487e377fbf7c5.zip | |
Missed a hasInterval check.
llvm-svn: 49415
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 3f124c00406..acbc911d6ac 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -1655,6 +1655,8 @@ SimpleRegisterCoalescing::TurnCopyIntoImpDef(MachineBasicBlock::iterator &I, LiveInterval &SrcInt = li_->getInterval(SrcReg); if (!SrcInt.empty()) return false; + if (!li_->hasInterval(DstReg)) + return false; LiveInterval &DstInt = li_->getInterval(DstReg); LiveInterval::iterator DstLR = DstInt.FindLiveRangeContaining(CopyIdx); DstInt.removeValNo(DstLR->valno); |

