aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index b758e7f..4d8db81 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -129,7 +129,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &fn) {
// because of SSA.
for (unsigned i = 1; i < mi->getNumOperands(); ++i) {
assert(!mi->getOperand(i).isRegister() ||
- mi->getOperand(i).getAllocatedRegNum() != regA);
+ mi->getOperand(i).getAllocatedRegNum() != (int)regA);
}
const TargetRegisterClass* rc = regAisPhysical ?