From 4e7444549e94d6c4857448fe74434a0ae7fb8272 Mon Sep 17 00:00:00 2001 From: Carol Eidt Date: Fri, 19 Feb 2016 21:55:47 -0800 Subject: [PATCH] Mark compTypeCtxtArg as lvOnFrame The type context argument must be initialized to lvOnFrame if it is not a register argument (as on x86, since it is passed after user arguments). --- src/jit/lclvars.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jit/lclvars.cpp b/src/jit/lclvars.cpp index 15bc1a2..ae05f01 100644 --- a/src/jit/lclvars.cpp +++ b/src/jit/lclvars.cpp @@ -991,6 +991,14 @@ void Compiler::lvaInitGenericsCtxt(InitVarDscInfo * varDscInfo) } #endif } +#ifndef LEGACY_BACKEND + else + { + // For the RyuJIT backend, we need to mark these as being on the stack, + // as this is not done elsewhere in the case that canEnreg returns false. + varDsc->lvOnFrame = true; + } +#endif // !LEGACY_BACKEND compArgSize += TARGET_POINTER_SIZE; -- 2.7.4