Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 3ccf725

Browse files
sjsinjuBruceForstall
authored andcommitted
[RyuJIT/ARM32] Fix assertion in 'unreached' when using emitIns_R_L (#11486)
* [RyuJIT/ARM32] Fix assertion in 'unreached' Now, All of CodeGenBringUpTests have failed. message : Assertion failed 'unreached' in 'DomainNeutralILStubClass:IL_STUB_PInvoke(ref)' I found the problem was caused by #11377 that 'genCodeForTreeNode' merged to codegenarmarch.cpp.
1 parent 06e4145 commit 3ccf725

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jit/codegenarmarch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ void CodeGen::genCodeForTreeNode(GenTreePtr treeNode)
343343
case GT_LABEL:
344344
genPendingCallLabel = genCreateTempLabel();
345345
treeNode->gtLabel.gtLabBB = genPendingCallLabel;
346+
#if defined(_TARGET_ARM_)
347+
emit->emitIns_J_R(INS_adr, EA_PTRSIZE, genPendingCallLabel, targetReg);
348+
#elif defined(_TARGET_ARM64_)
346349
emit->emitIns_R_L(INS_adr, EA_PTRSIZE, genPendingCallLabel, targetReg);
350+
#endif
347351
break;
348352

349353
case GT_STORE_OBJ:

0 commit comments

Comments
 (0)