X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCBBlock.c;h=717b97cfd371a4d3a90646b6f0f579b9b2853fdb;hb=9f5f3caa74d66d5cc90eebec71a5e743f7c5a970;hp=2d879cef1f92db395c1e9f155366bd33cbd69823;hpb=7acf410d97f954d4aa6f2a728e2faa39b555ba13;p=fw%2Fsdcc diff --git a/src/SDCCBBlock.c b/src/SDCCBBlock.c index 2d879cef..717b97cf 100644 --- a/src/SDCCBBlock.c +++ b/src/SDCCBBlock.c @@ -419,6 +419,7 @@ addiCodeToeBBlock (eBBlock * ebp, iCode * ic, iCode * ip) void remiCodeFromeBBlock (eBBlock * ebb, iCode * ic) { + wassert (ic->seq>=ebb->fSeq && ic->seq<=ebb->lSeq); if (ic->prev) ic->prev->next = ic->next; else @@ -562,7 +563,7 @@ replaceSymBySym (set * sset, operand * src, operand * dest) { bitVectUnSetBit (OP_USES (IC_COND (ic)), ic->key); IC_COND (ic) = operandFromOperand (dest); - OP_USES (dest) = bitVectSetBit (OP_USES (dest), ic->key); + OP_USES_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)); continue; } @@ -571,7 +572,7 @@ replaceSymBySym (set * sset, operand * src, operand * dest) bitVectUnSetBit (OP_USES (IC_RIGHT (ic)), ic->key); IC_RIGHT (ic) = operandFromOperand (dest); IC_RIGHT (ic)->isaddr = 0; - OP_USES (dest) = bitVectSetBit (OP_USES (dest), ic->key); + OP_USES_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)); } if (isOperandEqual (IC_LEFT (ic), src)) @@ -587,7 +588,7 @@ replaceSymBySym (set * sset, operand * src, operand * dest) IC_LEFT (ic) = operandFromOperand (dest); IC_LEFT (ic)->isaddr = 0; } - OP_USES (dest) = bitVectSetBit (OP_USES (dest), ic->key); + OP_USES_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)); } /* special case for pointer sets */ @@ -597,7 +598,7 @@ replaceSymBySym (set * sset, operand * src, operand * dest) bitVectUnSetBit (OP_USES (IC_RESULT (ic)), ic->key); IC_RESULT (ic) = operandFromOperand (dest); IC_RESULT (ic)->isaddr = 1; - OP_USES (dest) = bitVectSetBit (OP_USES (dest), ic->key); + OP_USES_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)); } } }