diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-07-12 20:07:01 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-12 20:07:01 +0000 |
commit | f36892335b4919b9120e48a792e6b3630b9de978 (patch) | |
tree | 7a5c22e5311a5e53602a173130e75a607bb1301b /lib/CodeGen/PreAllocSplitting.cpp | |
parent | 614be08dd6ae0755d8a4c32ad49f5f580602cc78 (diff) |
Fix assert(0) conversion, as suggested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r-- | lib/CodeGen/PreAllocSplitting.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp index 52a403bd36..c49575bade 100644 --- a/lib/CodeGen/PreAllocSplitting.cpp +++ b/lib/CodeGen/PreAllocSplitting.cpp @@ -1035,10 +1035,7 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) { CurrLI->FindLiveRangeContaining(LIs->getUseIndex(BarrierIdx)); VNInfo *ValNo = LR->valno; - if (ValNo->isUnused()) { - // Defined by a dead def? How can this be? - LLVM_UNREACHABLE("Val# is defined by a dead def?"); - } + assert(!ValNo->isUnused() && "Val# is defined by a dead def?"); MachineInstr *DefMI = ValNo->isDefAccurate() ? LIs->getInstructionFromIndex(ValNo->def) : NULL; |