diff --git a/src/coreclr/jit/morph.cpp b/src/coreclr/jit/morph.cpp index 1e1ced6a9b221..47d7e0852d1d2 100644 --- a/src/coreclr/jit/morph.cpp +++ b/src/coreclr/jit/morph.cpp @@ -11764,6 +11764,7 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac) // 'temp' because a GT_ADDR always marks it for its operand. temp->gtFlags &= ~GTF_DONT_CSE; temp->gtFlags |= (tree->gtFlags & GTF_DONT_CSE); + temp->SetVNsFromNode(tree); if (op1->OperGet() == GT_ADD) {