From 23cdca9f2be22904d196f69f0d64a1278cb73b44 Mon Sep 17 00:00:00 2001 From: Konstantin Baladurin Date: Fri, 13 Sep 2019 20:28:08 +0300 Subject: [PATCH] [JIT/x86] Fix LinearScan::allocateRegisters (#26649) Check for `lvLRACandidate` instead of `!lvDoNotEnregister` when checking whether `this` may be enregistered and has an Interval. --- src/jit/lsra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jit/lsra.cpp b/src/jit/lsra.cpp index 5002fdd..8f9bdd1 100644 --- a/src/jit/lsra.cpp +++ b/src/jit/lsra.cpp @@ -5834,7 +5834,7 @@ void LinearScan::allocateRegisters() if (enregisterLocalVars && compiler->lvaKeepAliveAndReportThis()) { LclVarDsc* thisVarDsc = compiler->lvaGetDesc(compiler->info.compThisArg); - if (!thisVarDsc->lvDoNotEnregister) + if (thisVarDsc->lvLRACandidate) { Interval* interval = getIntervalForLocalVar(thisVarDsc->lvVarIndex); if (interval->isSplit) -- 2.7.4