Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/coreclr/jit/codegenwasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3093,7 +3093,12 @@ void CodeGen::genCodeForStoreBlk(GenTreeBlk* blkOp)
unsigned destOffset = 0;
unsigned srcOffset = 0;

genConsumeOperands(blkOp);
// Unwrap a contained GT_INIT_VAL so the wrapped fill value (not the wrapper) is pushed onto the WASM value stack.
GenTree* srcForConsume = src->OperIs(GT_INIT_VAL) ? src->gtGetOp1() : src;
assert(!src->OperIs(GT_INIT_VAL) || src->isContained());

genConsumeRegs(dest);
genConsumeRegs(srcForConsume);

// If the source is a byref or pointer it will be a GT_IND that we need to unwrap to extract the
// actual address we're loading from. Note that this does not apply to the destination.
Expand Down
Loading