From: johanknol Date: Thu, 3 Apr 2003 10:05:26 +0000 (+0000) Subject: check the sorted bb list for missing returns X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b5887d42a060019cb5559c440a909af0e8baa146;p=fw%2Fsdcc check the sorted bb list for missing returns git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2472 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCopt.c b/src/SDCCopt.c index 33c226d3..899e3199 100644 --- a/src/SDCCopt.c +++ b/src/SDCCopt.c @@ -886,6 +886,9 @@ eBBlockFromiCode (iCode * ic) } + /* sort it back by block number */ + qsort (ebbs, saveCount, sizeof (eBBlock *), bbNumCompare); + if (!options.lessPedantic) { // this is a good place to check missing return values if (currFunc) { @@ -903,9 +906,6 @@ eBBlockFromiCode (iCode * ic) } } - /* sort it back by block number */ - qsort (ebbs, saveCount, sizeof (eBBlock *), bbNumCompare); - /* if cyclomatic info requested then print it */ if (options.cyclomatic) printCyclomatic (ebbs, saveCount);