From: Vikram S. Adve Date: Sun, 21 Sep 2003 07:55:27 +0000 (+0000) Subject: Fix assertion so it doesn't not trip incorrectly. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4d436c1a413312658669e6727ffa485c2dbdf17c;p=oota-llvm.git 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 --- diff --git a/lib/Target/SparcV9/SparcV9RegClassInfo.cpp b/lib/Target/SparcV9/SparcV9RegClassInfo.cpp index 75626e4a7b9..babc6fb72cd 100644 --- a/lib/Target/SparcV9/SparcV9RegClassInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegClassInfo.cpp @@ -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() ) {