Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit fc8bd03

Browse files
author
Sergey Andreenko
authored
Do not check stmts after the tail call candidate if the optimization has been aborted already. (#15065)
Fix #15056
1 parent 1db91d2 commit fc8bd03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/jit/morph.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8478,9 +8478,12 @@ GenTreePtr Compiler::fgMorphCall(GenTreeCall* call)
84788478
}
84798479
#endif // FEATURE_PAL
84808480

8481-
if (!fgCheckStmtAfterTailCall())
8481+
if (szFailReason == nullptr)
84828482
{
8483-
szFailReason = "Unexpected statements after the tail call";
8483+
if (!fgCheckStmtAfterTailCall())
8484+
{
8485+
szFailReason = "Unexpected statements after the tail call";
8486+
}
84848487
}
84858488

84868489
if (szFailReason != nullptr)

0 commit comments

Comments
 (0)