Skip to content

Commit b1776bc

Browse files
committed
Use .front
1 parent 21a94e8 commit b1776bc

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)