From 9a20b005bca8dc21326edd42cac0d7801021b996 Mon Sep 17 00:00:00 2001 From: egorbot Date: Thu, 17 Oct 2024 04:19:49 +0200 Subject: [PATCH] fix bug --- src/coreclr/jit/assertionprop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/jit/assertionprop.cpp b/src/coreclr/jit/assertionprop.cpp index bafe2d0c27177..cff3e66c34c67 100644 --- a/src/coreclr/jit/assertionprop.cpp +++ b/src/coreclr/jit/assertionprop.cpp @@ -3102,7 +3102,7 @@ GenTree* Compiler::optVNBasedFoldConstExpr(BasicBlock* block, GenTree* parent, G // Were able to optimize. conValTree->gtVNPair = vnPair; - return gtWrapWithSideEffects(conValTree, tree); + return gtWrapWithSideEffects(conValTree, tree, GTF_ALL_EFFECT, true); } else {