Fix inliner bug that manifests on 12095's test case
Fix Issue 12095 - Wrong code with -O -inline