diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jit/morph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp index dd1a59bf06..aad413d1cb 100644 --- a/src/jit/morph.cpp +++ b/src/jit/morph.cpp @@ -60,7 +60,8 @@ GenTreePtr Compiler::fgMorphCastIntoHelper(GenTreePtr tree, int helper, GenTreeP GenTreePtr Compiler::fgMorphIntoHelperCall(GenTreePtr tree, int helper, GenTreeArgList* args) { - tree->ChangeOper(GT_CALL); + // The helper call ought to be semantically equivalent to the original node, so preserve its VN. + tree->ChangeOper(GT_CALL, GenTree::PRESERVE_VN); tree->gtFlags |= GTF_CALL; if (args) |