diff options
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAloc.cpp | 4 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAloc.cpp index ec3f8377fb..e0bf4006fd 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAloc.cpp @@ -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*>"; diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp index ec3f8377fb..e0bf4006fd 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp @@ -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*>"; |