mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Cast unsigned to int! It was causing a nice little bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e44718192
commit
137f7202c7
@ -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*>";
|
||||
|
@ -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*>";
|
||||
|
Loading…
Reference in New Issue
Block a user