Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Closed
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
5 changes: 0 additions & 5 deletions src/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3822,12 +3822,7 @@ GenTree* Lowering::LowerVirtualStubCall(GenTreeCall* call)
// on x64 we must materialize the target using specific registers.
addr->gtRegNum = comp->virtualStubParamInfo->GetReg();

// On ARM we must use a proper address in R12(thunk register) without dereferencing.
// So for the jump we use the default register.
// TODO: specifying register probably unnecessary for other platforms, too.
#if !defined(_TARGET_UNIX_) && !defined(_TARGET_ARM_)
indir->gtRegNum = REG_JUMP_THUNK_PARAM;
#endif
indir->gtFlags |= GTF_IND_REQ_ADDR_IN_REG;
#endif
result = indir;
Expand Down