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

http://d.puremagic.com/issues/show_bug.cgi?id=6720

A redo of Don's fix https://github.com/D-Programming-Language/dmd/commit/ac69d4b9893725d0eb7f40002f73d0b280214b02