summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jit/codegenxarch.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp
index 1f590abe02..076ba7c262 100644
--- a/src/jit/codegenxarch.cpp
+++ b/src/jit/codegenxarch.cpp
@@ -5094,13 +5094,16 @@ void CodeGen::genCallInstruction(GenTreePtr node)
genConsumeReg(target));
}
}
-#if defined(_TARGET_AMD64_) && defined(FEATURE_READYTORUN_COMPILER)
+#ifdef FEATURE_READYTORUN_COMPILER
else if (call->gtEntryPoint.addr != nullptr)
{
- genEmitCall(emitter::EC_FUNC_TOKEN_INDIR,
+ genEmitCall((call->gtEntryPoint.accessType == IAT_VALUE) ? emitter::EC_FUNC_TOKEN : emitter::EC_FUNC_TOKEN_INDIR,
methHnd,
INDEBUG_LDISASM_COMMA(sigInfo)
(void*) call->gtEntryPoint.addr,
+#ifdef _TARGET_X86_
+ stackArgBytes,
+#endif // _TARGET_X86_
retSize,
ilOffset);
}