[llvm-commits] CVS: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 4 23:43:01 PST 2004


Changes in directory llvm/lib/CodeGen:

TwoAddressInstructionPass.cpp updated: 1.4 -> 1.5

---
Log message:

fix warning


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff -u llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.4 llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.5
--- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.4	Sun Jan  4 20:25:45 2004
+++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp	Sun Jan  4 23:42:17 2004
@@ -129,7 +129,7 @@
             // 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 ?





More information about the llvm-commits mailing list