Skip to content

Commit 51b94f8

Browse files
committed
Fixups
1 parent 0cfeb18 commit 51b94f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/ISDOpcodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,8 @@ enum NodeType {
14011401
FAKE_USE,
14021402

14031403
/// OutChain = CHAIN_BARRIER(InChain) marks that optimizations should not
1404-
/// optimize any users of a chain that contains a CHAIN_BARRIER use a new
1405-
/// chain from a point earlier than the CHAIN_BARRIER.
1404+
/// optimize any users of a chain that contains a CHAIN_BARRIER to use a chain
1405+
/// from a point earlier than the CHAIN_BARRIER.
14061406
CHAIN_BARRIER,
14071407

14081408
/// GC_TRANSITION_START/GC_TRANSITION_END - These operators mark the

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_UnaryWithTwoFPResults(
811811
SmallVector<EVT, 3> OpsVT = {VT};
812812

813813
std::array<SDValue, 2> StackSlots;
814-
for (auto [ResNum, _] : enumerate(N->values())) {
814+
for (unsigned ResNum = 0; ResNum < N->getNumValues(); ++ResNum) {
815815
if (ResNum == CallRetResNo)
816816
continue;
817817
SDValue StackSlot = DAG.CreateStackTemporary(NVT);

0 commit comments

Comments
 (0)