Skip to content

Commit 7693b6d

Browse files
authored
Fix failed assertion 'FPbased == FPbased2' (#111787)
* Move assert to prevent incorrect trigger when lvaFrameAddress optimization merged SP+n and FP-m stores into a single pair-wise store * Better fix
1 parent f3d90b2 commit 7693b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/emitarm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12311,7 +12311,7 @@ size_t emitter::emitOutputInstr(insGroup* ig, instrDesc* id, BYTE** dp)
1231112311

1231212312
// If there are 2 GC vars in this instrDesc, get the 2nd variable
1231312313
// that should be tracked.
12314-
adr2 = emitComp->lvaFrameAddress(varNum2, &FPbased2, true);
12314+
adr2 = emitComp->lvaFrameAddress(varNum2, &FPbased2, FPbased);
1231512315
ofs2Dist = EA_SIZE_IN_BYTES(size);
1231612316
#ifdef DEBUG
1231712317
assert(FPbased == FPbased2);

0 commit comments

Comments
 (0)