diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-08-11 07:29:54 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-08-11 07:29:54 +0000 |
commit | 8f0ed914902f2d108ca2bd0b64b32c876bf24e5c (patch) | |
tree | ddd509dc55c077e6d546b74efd9aa59b59d38fa1 /llvm/lib/Object/ELF.cpp | |
parent | 69f3528c6abc83efd48977ba9c67150b93f15580 (diff) | |
download | llvm-8f0ed914902f2d108ca2bd0b64b32c876bf24e5c.zip llvm-8f0ed914902f2d108ca2bd0b64b32c876bf24e5c.tar.gz llvm-8f0ed914902f2d108ca2bd0b64b32c876bf24e5c.tar.bz2 |
Sema: Handle declspecs without declarators in records properly in C mode
We had two bugs:
- We wouldn't properly warn when a struct/union/enum was mentioned
inside of a record definition if no declarator was provided. We
should have mentioned that this declaration declares nothing.
- We didn't properly support Microsoft's extension where certain
declspecs without declarators would act as anonymous structs/unions.
* We completely ignored the case where such a declspec could be a
union.
* We didn't properly handle the case where a record was defined inside
another record:
struct X {
int a;
struct Y {
int b;
};
};
llvm-svn: 215347
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions