aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-09-18 12:57:39 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-09-18 12:57:39 +0000
commit137f7202c75d44903d0df89971396684bcc66212 (patch)
tree400af2c240e109776ce13ff0344f5626ea001129 /lib
parent6e447181928b95902c38ea89e57bc835ecd83cb5 (diff)
downloadexternal_llvm-137f7202c75d44903d0df89971396684bcc66212.zip
external_llvm-137f7202c75d44903d0df89971396684bcc66212.tar.gz
external_llvm-137f7202c75d44903d0df89971396684bcc66212.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAloc.cpp4
-rw-r--r--lib/Target/SparcV9/RegAlloc/PhyRegAloc.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAloc.cpp
index ec3f837..e0bf400 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 ec3f837..e0bf400 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*>";