Fix Issue 12833 - switch statement does not work properly when -inline used
Merge pull request #3776 from yebblies/issue12833

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