From: sandeep Date: Tue, 27 Jun 2000 20:58:41 +0000 (+0000) Subject: fixed a live range computing bug X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e4c97b74ed3c13238490a0bce1d7c8f35696296d;p=fw%2Fsdcc fixed a live range computing bug git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@291 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCClrange.c b/src/SDCClrange.c index 7c71b130..583aeb49 100644 --- a/src/SDCClrange.c +++ b/src/SDCClrange.c @@ -422,11 +422,11 @@ void markLiveRanges (eBBlock *ebp, eBBlock **ebbs, int count) /* for all the definitions in the block */ /* compute and set the live from */ - if ( ebp->defSet && ! bitVectIsZero(ebp->defSet)) { - for ( i = 0 ; i < ebp->defSet->size ; i++ ) { + if ( ebp->ldefs && ! bitVectIsZero(ebp->ldefs)) { + for ( i = 0 ; i < ebp->ldefs->size ; i++ ) { iCode *dic; - if (bitVectBitValue(ebp->defSet,i) && + if (bitVectBitValue(ebp->ldefs,i) && (dic = hTabItemWithKey(iCodehTab,i))) { /* if the definition has a from & it is greater */