Cast unsigned to int! It was causing a nice little bug.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 18 Sep 2001 12:57:39 +0000 (12:57 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 18 Sep 2001 12:57:39 +0000 (12:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@614 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/PhyRegAloc.cpp
lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp

index ec3f8377fb12592197212eab3585526c3cda9a01..e0bf4006fdd8e4deeada30094de808b1e4bd8da7 100644 (file)
@@ -338,8 +338,8 @@ void PhyRegAlloc::printMachineCode()
            Op.getOperandType() ==  MachineOperand::MO_CCRegister ||
            Op.getOperandType() ==  MachineOperand::MO_MachineRegister ) {
 
-         const int RegNum = Op.getAllocatedRegNum();
-
+         const int RegNum = (const int) Op.getAllocatedRegNum();
+         
          // ****this code is temporary till NULL Values are fixed
          if( RegNum == 10000) {
            cout << "\t<*NULL Value*>";
index ec3f8377fb12592197212eab3585526c3cda9a01..e0bf4006fdd8e4deeada30094de808b1e4bd8da7 100644 (file)
@@ -338,8 +338,8 @@ void PhyRegAlloc::printMachineCode()
            Op.getOperandType() ==  MachineOperand::MO_CCRegister ||
            Op.getOperandType() ==  MachineOperand::MO_MachineRegister ) {
 
-         const int RegNum = Op.getAllocatedRegNum();
-
+         const int RegNum = (const int) Op.getAllocatedRegNum();
+         
          // ****this code is temporary till NULL Values are fixed
          if( RegNum == 10000) {
            cout << "\t<*NULL Value*>";