From dc593b5fc380ef1477ed33ba0356792c3dc5e1b6 Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Fri, 21 Oct 2016 14:39:18 -0700 Subject: [PATCH] Properly initialize the varargs base lclVar. The code that initializes this lclVar was not using the correct helper to determine whether or not a lclVar was enregistered at the beginning of a method. --- src/jit/codegencommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jit/codegencommon.cpp b/src/jit/codegencommon.cpp index 2f83045..ade2dea 100755 --- a/src/jit/codegencommon.cpp +++ b/src/jit/codegencommon.cpp @@ -8997,7 +8997,7 @@ void CodeGen::genFnProlog() // LEA EAX, & + EAX getEmitter()->emitIns_R_ARR(INS_lea, EA_PTRSIZE, REG_EAX, genFramePointerReg(), REG_EAX, offset); - if (varDsc->lvRegister) + if (varDsc->lvIsInReg()) { if (varDsc->lvRegNum != REG_EAX) { -- 2.7.4