From 5c6d1b3f7b63a3150ce6c737aeb4af03b3cce621 Mon Sep 17 00:00:00 2001 From: Andy Ayers Date: Tue, 7 Jan 2025 17:44:51 -0800 Subject: [PATCH] JIT: add missing SetMorphed call (#111176) to the comma created by `gtWrapWithSideEffects`. Fixes #110960 --- src/coreclr/jit/gentree.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index f48cbc4e02dfd..166a5ff7bc585 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -17306,6 +17306,7 @@ GenTree* Compiler::gtWrapWithSideEffects(GenTree* tree, comma->gtVNPair = vnStore->VNPWithExc(tree->gtVNPair, vnStore->VNPExceptionSet(sideEffectsSource->gtVNPair)); } + comma->SetMorphed(this); return comma; } return tree;