mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Fix assertion so it doesn't not trip incorrectly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8650 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd353fb662
commit
4d436c1a41
@ -213,10 +213,10 @@ void SparcFloatRegClass::colorIGNode(IGNode * Node,
|
||||
IGNode *NeighIGNode = Node->getAdjIGNode(n);
|
||||
LiveRange *NeighLR = NeighIGNode->getParentLR();
|
||||
|
||||
if (NeighLR->hasColor() &&
|
||||
NeighLR->getType() == Type::DoubleTy) {
|
||||
assert(IsColorUsedArr[ NeighLR->getColor() ] &&
|
||||
IsColorUsedArr[ NeighLR->getColor()+1 ]);
|
||||
if (NeighLR->hasColor()) {
|
||||
assert(IsColorUsedArr[ NeighLR->getColor() ]);
|
||||
if (NeighLR->getType() == Type::DoubleTy)
|
||||
assert(IsColorUsedArr[ NeighLR->getColor()+1 ]);
|
||||
|
||||
} else if (NeighLR->hasSuggestedColor() &&
|
||||
NeighLR-> isSuggestedColorUsable() ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user