debuginfo: Fix an ICE related to local variables in unreachable code.

Fixes #20312