Skip to content

Commit 86dfbdf

Browse files
committed
Fix replace lane crash
Replace lane code gen needs to release temporary registers it gets for the lane value operand.
1 parent 4957b3c commit 86dfbdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/WasmReader/WasmByteCodeGenerator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,7 @@ EmitInfo WasmBytecodeGenerator::EmitReplaceLaneExpr(Js::OpCodeAsmJs op, const Wa
15711571

15721572
m_writer->AsmReg4(op, resultReg, simdArg.location, indexInfo.location, valueArg.location);
15731573
ReleaseLocation(&indexInfo);
1574+
ReleaseLocation(&valueArg);
15741575
return result;
15751576
}
15761577

0 commit comments

Comments
 (0)