[NFC][regalloc] Fix typo in llvm/lib/CodeGen/AllocationOrder.h.
diff --git a/llvm/lib/CodeGen/AllocationOrder.h b/llvm/lib/CodeGen/AllocationOrder.h
index e0ea6a8..3dd02c3 100644
--- a/llvm/lib/CodeGen/AllocationOrder.h
+++ b/llvm/lib/CodeGen/AllocationOrder.h
@@ -48,7 +48,7 @@
public:
Iterator(const AllocationOrder &AO, int Pos) : AO(AO), Pos(Pos) {}
- /// Return true if the curent position is that of a preferred register.
+ /// Return true if the current position is that of a preferred register.
bool isHint() const { return Pos < 0; }
/// Return the next physical register in the allocation order.
@@ -85,7 +85,7 @@
const RegisterClassInfo &RegClassInfo,
const LiveRegMatrix *Matrix);
- /// Create an AllocationOrder given the Hits, Order, and HardHits values.
+ /// Create an AllocationOrder given the Hints, Order, and HardHints values.
/// Use the create method above - the ctor is for unittests.
AllocationOrder(SmallVector<MCPhysReg, 16> &&Hints, ArrayRef<MCPhysReg> Order,
bool HardHints)