diff options
Diffstat (limited to 'gnu/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/gnu/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp index 795028e9792..be0cd9072ad 100644 --- a/gnu/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/gnu/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -344,6 +344,10 @@ bool LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) { assert(MFI.isObjectPreAllocated(FrameIdx) && "Only pre-allocated locals expected!"); + int StackProtectorFI = MFI.getStackProtectorIndex(); + if (StackProtectorFI >= 0 && StackProtectorFI == FrameIdx) + continue; + LLVM_DEBUG(dbgs() << "Considering: " << MI); unsigned idx = 0; |
