Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
egorbot committed Oct 17, 2024
1 parent d4b6862 commit 9a20b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/assertionprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 9a20b00

Please sign in to comment.