Skip to content

Commit f46ff4c

Browse files
committed
[NFC][regalloc] Fix typo in llvm/lib/CodeGen/AllocationOrder.h.
1 parent 44c4b4c commit f46ff4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/AllocationOrder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class LLVM_LIBRARY_VISIBILITY AllocationOrder {
4848
public:
4949
Iterator(const AllocationOrder &AO, int Pos) : AO(AO), Pos(Pos) {}
5050

51-
/// Return true if the curent position is that of a preferred register.
51+
/// Return true if the current position is that of a preferred register.
5252
bool isHint() const { return Pos < 0; }
5353

5454
/// Return the next physical register in the allocation order.
@@ -85,7 +85,7 @@ class LLVM_LIBRARY_VISIBILITY AllocationOrder {
8585
const RegisterClassInfo &RegClassInfo,
8686
const LiveRegMatrix *Matrix);
8787

88-
/// Create an AllocationOrder given the Hits, Order, and HardHits values.
88+
/// Create an AllocationOrder given the Hints, Order, and HardHints values.
8989
/// Use the create method above - the ctor is for unittests.
9090
AllocationOrder(SmallVector<MCPhysReg, 16> &&Hints, ArrayRef<MCPhysReg> Order,
9191
bool HardHints)

0 commit comments

Comments
 (0)