[-Wunreachable-code] handle cases where a dead 'return' may have a valid predecessor.

Fies PR19040.