aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-07-01 00:59:27 +0000
committerJustin Bogner <mail@justinbogner.com>2015-07-01 00:59:27 +0000
commitbdff219439efcdb157962498e5eeaecb77ed65a7 (patch)
treee25af55bcbed24098e0ca327a9d4e22c267a1a8b /clang/lib/CodeGen/CodeGenFunction.cpp
parent53f34c87365fb826a042acab0ade55a54a6d50b8 (diff)
downloadllvm-bdff219439efcdb157962498e5eeaecb77ed65a7.zip
llvm-bdff219439efcdb157962498e5eeaecb77ed65a7.tar.gz
llvm-bdff219439efcdb157962498e5eeaecb77ed65a7.tar.bz2
CodeGen: Resize LifetimeExtendedCleanupHeader to avoid alignment issues
The LifetimeExtendedCleanupHeader is carefully fit into 32 bytes, meaning that cleanups on the LifetimeExtendedCleanupStack are *always* allocated at a misaligned address and cause undefined behaviour. There are two ways to solve this - add padding after the header when we allocated our cleanups, or just simplify the header and let it use 64 bits in the first place. I've opted for the latter, and added a static assert to avoid the issue in the future. llvm-svn: 241133
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions