aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 7a0fcb5651..53c63a09e8 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -502,8 +502,7 @@ MachineInstr *findLocalKill(unsigned Reg, MachineBasicBlock *MBB,
continue;
if (!UI.getOperand().isKill())
return 0;
- if (KillMI)
- return 0; // -O0 kill markers cannot be trusted?
+ assert(!KillMI && "More than one local kills?");
KillMI = UseMI;
}