RegisterAllocationPass: Resolve sign comparison mismatch in CalculateNodeInterference()

GetSSACount() returns a size_t, rather than a signed value.
This commit is contained in:
lioncash committed 2021-12-02 18:13:01 -05:00
1 parent 8ef0278338
commit cdab71e612
1 file changed
+1 -1
@@ -904,7 +904,7 @@ namespace {
}
BucketList<32, uint32_t> Active;
for (int OpNodeId = 0; OpNodeId < IR->GetSSACount(); OpNodeId++) {
for (size_t OpNodeId = 0; OpNodeId < IR->GetSSACount(); OpNodeId++) {
// Expire end intervals first
SpanEnd[OpNodeId].Iterate([&](uint32_t EdgeInfo) {
Active.Erase(InfoIDClass(EdgeInfo));