Buggy optimizations caused function-call return to share the function's entry point