aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/RegAlloc/RegClass.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-06-12 23:52:58 +0000
committerNate Begeman <natebegeman@mac.com>2005-06-12 23:52:58 +0000
commit244e92eaab5065e489df98f3340f10815714185f (patch)
tree9157c0e797c5241a1de3525926eab3032d4c1271 /lib/Target/SparcV9/RegAlloc/RegClass.cpp
parentac609ddf823d6d955f74ec6f82ca3b388ed9d610 (diff)
When compiled with GCC 4.0, a latent bug was exposed where both SparcV9
and the target independant register allocator were both using a class named 'LiveRange'. This lead to the target independant code calling code in the SparcV9 backend, which crashed. Fixed by renaming SparcV9's LiveRange to V9LiveRange. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc/RegClass.cpp')
-rw-r--r--lib/Target/SparcV9/RegAlloc/RegClass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/RegClass.cpp b/lib/Target/SparcV9/RegAlloc/RegClass.cpp
index ccafd3d2d3..fab53f1df4 100644
--- a/lib/Target/SparcV9/RegAlloc/RegClass.cpp
+++ b/lib/Target/SparcV9/RegAlloc/RegClass.cpp
@@ -197,11 +197,11 @@ void RegClass::colorIGNode(IGNode *const Node) {
clearColorsUsed();
// initialize all colors used by neighbors of this node to true
- LiveRange *LR = Node->getParentLR();
+ V9LiveRange *LR = Node->getParentLR();
unsigned NumNeighbors = Node->getNumOfNeighbors();
for (unsigned n=0; n < NumNeighbors; n++) {
IGNode *NeighIGNode = Node->getAdjIGNode(n);
- LiveRange *NeighLR = NeighIGNode->getParentLR();
+ V9LiveRange *NeighLR = NeighIGNode->getParentLR();
// Don't use a color if it is in use by the neighbor,
// or is suggested for use by the neighbor,