[JIT/x86] Fix LinearScan::allocateRegisters (#26649)
[platform/upstream/coreclr.git] / src / jit / lsra.cpp
index 5002fdd..8f9bdd1 100644 (file)
@@ -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)