Fix Issue 12095 - Wrong code with -O -inline