Skip to content

Commit be07817

Browse files
committed
Use .front
1 parent f2375b7 commit be07817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/RegAllocFast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ void RegAllocFastImpl::allocVirtRegUndef(MachineOperand &MO) {
998998
PhysReg = getErrorAssignment(*LRI, *MO.getParent(), RC);
999999
LRI->Error = true;
10001000
} else
1001-
PhysReg = AllocationOrder[0];
1001+
PhysReg = AllocationOrder.front();
10021002
}
10031003

10041004
unsigned SubRegIdx = MO.getSubReg();

0 commit comments

Comments
 (0)