John McCall
f31fac4712
Formatting.
...
llvm-svn: 129336
2011-04-12 00:59:32 +00:00
John McCall
53fcbd2718
Pretty up the emission of field l-values and use volatile and TBAA when
...
loading references as part of that. Use 'char' TBAA when accessing
(immediate!) fields of a may_alias struct; fixes PR9307.
llvm-svn: 126540
2011-02-26 08:07:02 +00:00
Argyrios Kyrtzidis
8322b426a5
Amazing that there are still issues with the fields of anonymous struct/unions..
...
Allow taking the address of such a field for a pointer-to-member constant. Fixes rdar://8818236.
llvm-svn: 124575
2011-01-31 07:04:29 +00:00
Argyrios Kyrtzidis
1ce7755c35
Fix test that didn't actually test what it wanted to test.
...
llvm-svn: 124574
2011-01-31 07:04:24 +00:00
Francois Pichet
dbafc19fe0
Fix PR8760: IndirectFieldDecl Type was not updated during template instantiation.
...
llvm-svn: 121363
2010-12-09 10:07:54 +00:00
Argyrios Kyrtzidis
a3ae3eb690
Fix initialization for members of anonymous struct in a union.
...
llvm-svn: 111159
2010-08-16 17:27:13 +00:00
John McCall
c4094935c0
When emitting an lvalue for an anonymous struct or union member during
...
class initialization, drill down through an arbitrary number of anonymous
records.
llvm-svn: 104310
2010-05-21 01:18:57 +00:00
John McCall
bc83b3f011
Be sure to apply initializers to members of anonymous structs and unions
...
recursively, e.g. so that members of anonymous unions inside anonymous structs
still get initialized. Also generate default constructor calls for anonymous
struct members when necessary.
llvm-svn: 104292
2010-05-20 23:23:51 +00:00
Douglas Gregor
456ad1a817
When a class contains a non-empty anonymous union or struct, mark is
...
as non-empty. Fixes PR7021.
llvm-svn: 102913
2010-05-03 15:18:25 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
Anders Carlsson
35dca26835
Fix an assertion when initializing a union using a member initializer. (We weren't casting from the union type to the initializer type correctly).
...
llvm-svn: 80837
2009-09-02 21:14:47 +00:00