Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 5451c70

Browse files
committed
Rangeify a loop. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265846 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 7752b4e commit 5451c70

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16794,12 +16794,11 @@ X86TargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
1679416794
// The 64 bit implementation of segmented stacks needs to clobber both r10
1679516795
// r11. This makes it impossible to use it along with nested parameters.
1679616796
const Function *F = MF.getFunction();
16797-
16798-
for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
16799-
I != E; ++I)
16800-
if (I->hasNestAttr())
16797+
for (const auto &A : F->args()) {
16798+
if (A.hasNestAttr())
1680116799
report_fatal_error("Cannot use segmented stacks with functions that "
1680216800
"have nested arguments.");
16801+
}
1680316802
}
1680416803

1680516804
const TargetRegisterClass *AddrRegClass = getRegClassFor(SPTy);

0 commit comments

Comments
 (0)