From bd827343af8a6164a7c0e1aebde8d38ccf854f23 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 5 Jan 2004 05:42:17 +0000 Subject: [PATCH] fix warning llvm-svn: 10692 --- lib/CodeGen/TwoAddressInstructionPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index b758e7fd224..4d8db815b20 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 ?