aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9InstrSelection.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-11-12 05:16:39 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-11-12 05:16:39 +0000
commitfd9b7dcbf57429001767d565a466075e8517867d (patch)
treee07b9214cd0aac249b7356107a9c3559764138d6 /lib/Target/SparcV9/SparcV9InstrSelection.cpp
parent998cf0d25fb0d90b8f93a0af8f0deca209ec09ef (diff)
downloadexternal_llvm-fd9b7dcbf57429001767d565a466075e8517867d.zip
external_llvm-fd9b7dcbf57429001767d565a466075e8517867d.tar.gz
external_llvm-fd9b7dcbf57429001767d565a466075e8517867d.tar.bz2
Fix dumb bug in alignment adjustment code!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrSelection.cpp')
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index cd017b6..266d424 100644
--- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrSelection.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");