diff --git a/src/coreclr/jit/assertionprop.cpp b/src/coreclr/jit/assertionprop.cpp index a36be0af7ade35..dbbb0311e81e26 100644 --- a/src/coreclr/jit/assertionprop.cpp +++ b/src/coreclr/jit/assertionprop.cpp @@ -2770,7 +2770,7 @@ GenTree* Compiler::optVNBasedFoldExpr_Blk(BasicBlock* block, GenTree* parent, Ge VNFuncApp addrFuncApp; if (addr->OperIs(GT_LCL_ADDR) || - (vnStore->GetVNFunc(addrVN, &addrFuncApp)) && (addrFuncApp.m_func == VNF_PtrToLoc)) + ((vnStore->GetVNFunc(addrVN, &addrFuncApp)) && (addrFuncApp.m_func == VNF_PtrToLoc))) { // destination is on stack return nullptr; @@ -6571,6 +6571,7 @@ Compiler::fgWalkResult Compiler::optVNBasedFoldCurStmt(BasicBlock* block, { if (tree->OperIs(GT_STORE_BLK) && tree->AsBlk()->GetLayout()->HasGCPtr()) { + // The only case we handle for structs today is GT_STORE_BLK with gc refs -> bulk copy goto PERFORM_FOLD; } return WALK_CONTINUE;