diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-08-06 17:57:23 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-08-06 17:57:23 +0000 |
commit | e41d957028ddf5ff6fdd96c99f6a7fd9afa2358b (patch) | |
tree | 747685a7b56288836830e59078bea6c8bcebc91d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 04642a4972135e869615ab12c5debcf7a9956016 (diff) | |
download | llvm-e41d957028ddf5ff6fdd96c99f6a7fd9afa2358b.zip llvm-e41d957028ddf5ff6fdd96c99f6a7fd9afa2358b.tar.gz llvm-e41d957028ddf5ff6fdd96c99f6a7fd9afa2358b.tar.bz2 |
Round up the size of byval arguments to MinAlign
Otherwise we can end up with an argument frame size that is not a
multiple of stack slot size, which is very awkward.
This fixes PR20547, which was a bug in x86_64 Sys V vararg handling.
However, it's much easier to test this with x86 callee-cleanup
functions, which previously ended in "retl $6" instead of "retl $8".
This does affect behavior of all backends, but it presumably fixes the
same bug in all of them.
llvm-svn: 214980
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions