projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db91d2
)
Do not check stmts after the tail call candidate if the optimization has been aborted...
author
Sergey Andreenko
<seandree@microsoft.com>
Fri, 17 Nov 2017 02:48:18 +0000
(18:48 -0800)
committer
GitHub
<noreply@github.com>
Fri, 17 Nov 2017 02:48:18 +0000
(18:48 -0800)
Fix #15056
src/jit/morph.cpp
patch
|
blob
|
history
diff --git
a/src/jit/morph.cpp
b/src/jit/morph.cpp
index
2701d61
..
b8ce7a8
100644
(file)
--- a/
src/jit/morph.cpp
+++ b/
src/jit/morph.cpp
@@
-8478,9
+8478,12
@@
GenTreePtr Compiler::fgMorphCall(GenTreeCall* call)
}
#endif // FEATURE_PAL
- if (
!fgCheckStmtAfterTailCall()
)
+ if (
szFailReason == nullptr
)
{
- szFailReason = "Unexpected statements after the tail call";
+ if (!fgCheckStmtAfterTailCall())
+ {
+ szFailReason = "Unexpected statements after the tail call";
+ }
}
if (szFailReason != nullptr)