summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commitd756f06063cb8fe64161012d0ab959dfe385cc61 (patch)
tree3f87b1ad2b6d77a85674db71134a8f7884b29fcd /llvm/include
parent4c8af550adb48cc6a73c6253a7d121dff37fd457 (diff)
downloadbcm5719-llvm-d756f06063cb8fe64161012d0ab959dfe385cc61.tar.gz
bcm5719-llvm-d756f06063cb8fe64161012d0ab959dfe385cc61.zip
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. llvm-svn: 164946
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/CallingConvLower.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h
index 3afe3095d4f..436918b1eb3 100644
--- a/llvm/include/llvm/CodeGen/CallingConvLower.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud