summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-09-23 22:07:45 -0700
committerJan Kotas <jkotas@microsoft.com>2015-09-23 22:07:45 -0700
commitf87429893fa7d4ea24c4631cc1c229a05b3be9cc (patch)
treea6c2a1677956501697e9b2bfbd6629b4f2a42316
parent7291e2f10a7812807c558f04527142496e750241 (diff)
downloadcoreclr-f87429893fa7d4ea24c4631cc1c229a05b3be9cc.tar.gz
coreclr-f87429893fa7d4ea24c4631cc1c229a05b3be9cc.tar.bz2
coreclr-f87429893fa7d4ea24c4631cc1c229a05b3be9cc.zip
Delete incorrect AMD64 ifdef
ReadyToRun case of getCallInstruction was incorrectly ifdefed out for AMD64. Delete the incorrect ifdef and make other adjustment to make the code compile for X86 as well.
-rw-r--r--src/jit/codegenxarch.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp
index 7099de3ae2..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((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);
}