diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-06 21:06:39 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-06 21:06:39 +0000 |
| commit | 3371cce92f3c640cf4f2330d02281ffba41f82c7 (patch) | |
| tree | 076a39e01c743900bc2a1c5d46bb0b14d029957d /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
| parent | 642953d9482d9f21a31a6d9c77c10b00201e389f (diff) | |
| download | external_llvm-3371cce92f3c640cf4f2330d02281ffba41f82c7.zip external_llvm-3371cce92f3c640cf4f2330d02281ffba41f82c7.tar.gz external_llvm-3371cce92f3c640cf4f2330d02281ffba41f82c7.tar.bz2 | |
Fix buildbot breakage where a def is missing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
| -rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 0a1885f..c450136 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -352,6 +352,8 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(const CoalescerPair &CP, AValNo->isUnused() || AValNo->hasPHIKill()) return false; MachineInstr *DefMI = li_->getInstructionFromIndex(AValNo->def); + if (!DefMI) + return false; const TargetInstrDesc &TID = DefMI->getDesc(); if (!TID.isCommutable()) return false; |
