diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index cd017b6eb27..266d42435af 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -1037,7 +1037,7 @@ GetInstructionsForProlog(BasicBlock* entryBB,    if (unsigned padsz = (staticStackSize %                          (unsigned) frameInfo.getStackFrameSizeAlignment())) -    staticStackSize += padsz; +    staticStackSize += frameInfo.getStackFrameSizeAlignment() - padsz;    assert(target.getInstrInfo().constantFitsInImmedField(SAVE, staticStackSize)           && "Stack size too large for immediate field of SAVE instruction. Need additional work as described in the comment above");  | 

