From e4c97b74ed3c13238490a0bce1d7c8f35696296d Mon Sep 17 00:00:00 2001 From: sandeep Date: Tue, 27 Jun 2000 20:58:41 +0000 Subject: [PATCH] fixed a live range computing bug git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@291 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCClrange.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.47.2