summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CallingConvLower.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-09 15:39:01 +0000
committerEric Christopher <echristo@apple.com>2011-06-09 15:39:01 +0000
commitcafa08cbf3b5f0566ff7911c51f8eff3aef06192 (patch)
tree6bff5b32f77af1c0d2306ad3ace9686c678bb941 /llvm/lib/CodeGen/CallingConvLower.cpp
parentb77c00fb60faa025c49a625d68da7682be654579 (diff)
downloadbcm5719-llvm-cafa08cbf3b5f0566ff7911c51f8eff3aef06192.tar.gz
bcm5719-llvm-cafa08cbf3b5f0566ff7911c51f8eff3aef06192.zip
Recommit r132764 since it didn't cause the windows buildbot failures.
llvm-svn: 132776
Diffstat (limited to 'llvm/lib/CodeGen/CallingConvLower.cpp')
-rw-r--r--llvm/lib/CodeGen/CallingConvLower.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp
index dac2fef5b43..bc61ec8ed0a 100644
--- a/llvm/lib/CodeGen/CallingConvLower.cpp
+++ b/llvm/lib/CodeGen/CallingConvLower.cpp
@@ -49,6 +49,8 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT,
Size = MinSize;
if (MinAlign > (int)Align)
Align = MinAlign;
+ if (MF.getFrameInfo()->getMaxAlignment() < Align)
+ MF.getFrameInfo()->setMaxAlignment(Align);
TM.getTargetLowering()->HandleByVal(const_cast<CCState*>(this), Size);
unsigned Offset = AllocateStack(Size, Align);
addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
OpenPOWER on IntegriCloud