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:
0bf260e
)
Narrow the assert in fgLateDevirtualization (#21163)
author
Michal Strehovský
<MichalStrehovsky@users.noreply.github.com>
Thu, 22 Nov 2018 17:38:16 +0000
(18:38 +0100)
committer
GitHub
<noreply@github.com>
Thu, 22 Nov 2018 17:38:16 +0000
(18:38 +0100)
As suggested by Andy in dotnet/corert#6601.
src/jit/flowgraph.cpp
patch
|
blob
|
history
diff --git
a/src/jit/flowgraph.cpp
b/src/jit/flowgraph.cpp
index
bcc818f
..
eba0c0b
100644
(file)
--- a/
src/jit/flowgraph.cpp
+++ b/
src/jit/flowgraph.cpp
@@
-22399,9
+22399,9
@@
Compiler::fgWalkResult Compiler::fgLateDevirtualization(GenTree** pTree, fgWalkD
// jit\Methodical\VT\callconv\_il_reljumper3 for x64 linux
//
// If so, just bail out here.
- if (
(parent != nullptr) && parent->OperGet() == GT_NOP
)
+ if (
tree == nullptr
)
{
- assert(
tree == nullptr
);
+ assert(
(parent != nullptr) && parent->OperGet() == GT_NOP
);
return WALK_CONTINUE;
}