forked from OSchip/llvm-project
parent
74ff770670
commit
e25b65bdb7
|
@ -16794,12 +16794,11 @@ X86TargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
|
|||
// The 64 bit implementation of segmented stacks needs to clobber both r10
|
||||
// r11. This makes it impossible to use it along with nested parameters.
|
||||
const Function *F = MF.getFunction();
|
||||
|
||||
for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
|
||||
I != E; ++I)
|
||||
if (I->hasNestAttr())
|
||||
for (const auto &A : F->args()) {
|
||||
if (A.hasNestAttr())
|
||||
report_fatal_error("Cannot use segmented stacks with functions that "
|
||||
"have nested arguments.");
|
||||
}
|
||||
}
|
||||
|
||||
const TargetRegisterClass *AddrRegClass = getRegClassFor(SPTy);
|
||||
|
|
Loading…
Reference in New Issue