Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed May 1, 2024
1 parent d1a4d35 commit 0db8727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/assertionprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0db8727

Please sign in to comment.