fix Issue 6720 - ICE(cod1.c) casting return of void function to bool
Merge pull request #2632 from WalterBright/fix6720

fix Issue 6720 - ICE(cod1.c) casting return of void function to bool