Index: src/IceRegAlloc.cpp |
diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp |
index f59cb3c4749e85f765863f59acd88f39bf639720..993dc4418c6d7910d234bb229a1341f9b98ffce8 100644 |
--- a/src/IceRegAlloc.cpp |
+++ b/src/IceRegAlloc.cpp |
@@ -502,7 +502,7 @@ void LinearScan::handleInactiveRangeExpiredOrReactivated(const Variable *Cur) { |
// not appear within the current Variable's live range. |
void LinearScan::findRegisterPreference(IterationState &Iter) { |
Iter.Prefer = nullptr; |
- Iter.PreferReg = RegNumT::NoRegister; |
+ Iter.PreferReg = RegNumT(); |
Iter.AllowOverlap = false; |
if (!FindPreference) |
@@ -738,7 +738,7 @@ void LinearScan::handleNoFreeRegisters(IterationState &Iter) { |
--RegUses[RegAlias]; |
assert(RegUses[RegAlias] >= 0); |
} |
- Item->setRegNumTmp(RegNumT::NoRegister); |
+ Item->setRegNumTmp(RegNumT()); |
moveItem(Active, Index, Handled); |
Evicted.push_back(Item); |
} |
@@ -756,7 +756,7 @@ void LinearScan::handleNoFreeRegisters(IterationState &Iter) { |
// instructions. |
if (Aliases[Item->getRegNumTmp()] && Item->rangeOverlaps(Iter.Cur)) { |
dumpLiveRangeTrace("Evicting I ", Item); |
- Item->setRegNumTmp(RegNumT::NoRegister); |
+ Item->setRegNumTmp(RegNumT()); |
moveItem(Inactive, Index, Handled); |
Evicted.push_back(Item); |
} |