diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-04-07 02:37:09 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-04-07 02:37:09 +0000 |
commit | 26a1e0ef760a289b99630eda83b7b7ea224ae2e2 (patch) | |
tree | 797cad849d2de0ae886e0b4e1a250ced13828794 /llvm/lib/CodeGen/MachineModuleInfoImpls.cpp | |
parent | 11dcc79de11481e31aff2c3f9f8abd83ea607405 (diff) | |
download | llvm-26a1e0ef760a289b99630eda83b7b7ea224ae2e2.zip llvm-26a1e0ef760a289b99630eda83b7b7ea224ae2e2.tar.gz llvm-26a1e0ef760a289b99630eda83b7b7ea224ae2e2.tar.bz2 |
[Sema] Don't permit dependent alignments on non-dependent typedef-names
A dependent alignment attribute (like __attribute__((aligned(...))) or
__declspec(align(...))) on a non-dependent typedef or using declaration
poses a considerable challenge: the type is _not_ dependent, the size
_may_ be dependent if the type is used as an array type, the alignment
_is_ dependent.
It is reasonable for a compiler to be able to query the size and
alignment of a complete type. Let's help that become an invariant.
This fixes PR22042.
Differential Revision: http://reviews.llvm.org/D8693
llvm-svn: 234280
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions