summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/CallingConvLower.h
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2012-10-01 16:44:04 +0000
committerMichael Liao <michael.liao@intel.com>2012-10-01 16:44:04 +0000
commit31189373056ce12f729333c4dc16d02ad72e8e1f (patch)
tree8cd570721b061348ce85c5be0da237a0c1ca2a93 /include/llvm/CodeGen/CallingConvLower.h
parentf0070f2a973ff046ee63de827ab32ff215b369b2 (diff)
downloadllvm-31189373056ce12f729333c4dc16d02ad72e8e1f.tar.gz
llvm-31189373056ce12f729333c4dc16d02ad72e8e1f.tar.bz2
llvm-31189373056ce12f729333c4dc16d02ad72e8e1f.tar.xz
Fix PR13899
- Update maximal stack alignment when stack arguments are prepared before a call. - Test cases are enhanced to show it's not a Win32 specific issue but a generic one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/CallingConvLower.h')
-rw-r--r--include/llvm/CodeGen/CallingConvLower.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h
index 3afe3095d4..436918b1eb 100644
--- a/include/llvm/CodeGen/CallingConvLower.h
+++ b/include/llvm/CodeGen/CallingConvLower.h
@@ -17,6 +17,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineFunction.h"
+#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/ValueTypes.h"
#include "llvm/Target/TargetCallingConv.h"
#include "llvm/CallingConv.h"
@@ -288,6 +289,7 @@ public:
StackOffset = ((StackOffset + Align-1) & ~(Align-1));
unsigned Result = StackOffset;
StackOffset += Size;
+ MF.getFrameInfo()->ensureMaxAlignment(Align);
return Result;
}