diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-02-24 23:34:17 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-02-24 23:34:17 +0000 |
| commit | bf326acad113ad499f52493b097c3517d38c4f84 (patch) | |
| tree | b364b71244faea7a62d6dd0449609d12eb62205e /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 02ed63841276d2205598d8a02b6ebf6e06960957 (diff) | |
| download | clang-bf326acad113ad499f52493b097c3517d38c4f84.tar.gz clang-bf326acad113ad499f52493b097c3517d38c4f84.tar.bz2 clang-bf326acad113ad499f52493b097c3517d38c4f84.tar.xz | |
Sema: Make getPreferredTypeAlign respect alignments specified with an aligned attribute on a typedef
When calculating the preferred alignment of a type, consider if a alignment
attribute came from a typedef declaration. If one did, do not naturally align
the type.
Patch by Stephan Tolksdorf, with a little tweaking and an additional testcase by me.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
