X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCopt.c;h=25ca302e7583af2e80a0b09587b9cba3fa6578c7;hb=edb7d4ddf17ec135168854dac6c08a8079d033b8;hp=899e319921ab0efba7c6019726e22cf176041fec;hpb=b5887d42a060019cb5559c440a909af0e8baa146;p=fw%2Fsdcc diff --git a/src/SDCCopt.c b/src/SDCCopt.c index 899e3199..25ca302e 100644 --- a/src/SDCCopt.c +++ b/src/SDCCopt.c @@ -892,7 +892,7 @@ eBBlockFromiCode (iCode * ic) if (!options.lessPedantic) { // this is a good place to check missing return values if (currFunc) { - if (!IS_VOID(currFunc->type->next)) { + if (!IS_VOID(currFunc->etype)) { eBBlock *bp; // make sure all predecessors of the last block end in a return for (bp=setFirstItem(ebbs[saveCount-1]->predList);