another missing return value fix
[fw/sdcc] / src / SDCCopt.c
index 899e319921ab0efba7c6019726e22cf176041fec..25ca302e7583af2e80a0b09587b9cba3fa6578c7 100644 (file)
@@ -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);