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