summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveRangeCalc.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2011-12-20 20:23:40 +0000
committerLang Hames <lhames@gmail.com>2011-12-20 20:23:40 +0000
commitaa13482784d100a8f4aef20f5b647192754a1a1d (patch)
tree12e02ac3bd5577835e8bbb849492447d6c2b3230 /lib/CodeGen/LiveRangeCalc.cpp
parent25101bb2a799a36be9f077ee2fc2dcf0df2b6efb (diff)
downloadllvm-aa13482784d100a8f4aef20f5b647192754a1a1d.tar.gz
llvm-aa13482784d100a8f4aef20f5b647192754a1a1d.tar.bz2
llvm-aa13482784d100a8f4aef20f5b647192754a1a1d.tar.xz
Fix assert condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveRangeCalc.cpp')
-rw-r--r--lib/CodeGen/LiveRangeCalc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveRangeCalc.cpp b/lib/CodeGen/LiveRangeCalc.cpp
index a7d5af5198..1d6c3c5486 100644
--- a/lib/CodeGen/LiveRangeCalc.cpp
+++ b/lib/CodeGen/LiveRangeCalc.cpp
@@ -65,7 +65,7 @@ void LiveRangeCalc::extend(LiveInterval *LI,
assert(DomTree && "Missing dominator tree");
MachineBasicBlock *KillMBB = Indexes->getMBBFromIndex(Kill.getPrevSlot());
- assert(Kill && "No MBB at Kill");
+ assert(KillMBB && "No MBB at Kill");
// Is there a def in the same MBB we can extend?
if (LI->extendInBlock(Indexes->getMBBStartIdx(KillMBB), Kill))