Skip to content

Commit

Permalink
add an assert in allRegs()
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Mar 3, 2021
1 parent 98baa88 commit 91d9602
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 @@ -238,6 +238,8 @@ BasicBlock::weight_t LinearScan::getWeight(RefPosition* refPos)
// in time (more of a 'bank' of registers).
regMaskTP LinearScan::allRegs(RegisterType rt)
{
assert(rt != TYP_BYTE);

if (rt == TYP_FLOAT)
{
return availableFloatRegs;
Expand Down

0 comments on commit 91d9602

Please sign in to comment.