Skip to content

Commit

Permalink
[Windows x86] Fix assert(interval->physReg != REG_NA && interval->phy…
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Feb 26, 2021
1 parent 3101998 commit 121b732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/jit/lsra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6532,6 +6532,8 @@ void LinearScan::resolveLocalRef(BasicBlock* block, GenTreeLclVar* treeNode, Ref
}
interval->assignedReg = nullptr;
interval->physReg = REG_NA;
interval->isActive = false;

// Set this as contained if it is not a multi-reg (we could potentially mark it s contained
// if all uses are from spill, but that adds complexity.
if ((currentRefPosition->refType == RefTypeUse) && !treeNode->IsMultiReg())
Expand Down

0 comments on commit 121b732

Please sign in to comment.