Fix Issue 12833 - switch statement does not work properly when -inline used

Signed-off-by: Martin Krejcirik <mk@krej.cz>