summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/anonymous-union-member-initializer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixing incorrectly capitalised regexps.Benjamin Kramer2017-09-071-16/+16
| | | | | | Patch by Sam Allen! llvm-svn: 312710
* Update Clang tests to handle explicitly typed load changes in LLVM.David Blaikie2015-02-271-5/+5
| | | | llvm-svn: 230795
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-6/+6
| | | | | | tests fail. llvm-svn: 188447
* Fix an assertion failure with a C++ constructor initializing aEli Friedman2012-08-081-0/+10
| | | | | | member of reference type in an anonymous struct. PR13154. llvm-svn: 161473
* Rewrite default initialization of anonymous structs/unions within aDouglas Gregor2011-08-101-0/+49
| | | | | | | | | | | | | constructor. Previously, we did some bogus recursion into the fields of anonymous structs (recursively), which ended up building invalid ASTs that would cause CodeGen to crash due to invalid GEPs. Now, we instead build the default initializations based on the indirect field declarations at the top level, which properly generates the sequence of GEPs needed to initialize the proper member. Fixes PR10512 and <rdar://problem/9924046>. llvm-svn: 137212
* Eliminate an incomplete/incorrect attempt to provide support for C++0xDouglas Gregor2011-07-131-0/+16
| | | | | | | unrestricted unions, which ended up attempting to initialize objects in a union (which CodeGen isn't prepared for). Fixes PR9683. llvm-svn: 135027
* relax this test a bit to hopefully work with VC++Chris Lattner2011-07-101-1/+1
| | | | llvm-svn: 134870
* keep track of whether being in a RS_StructPointer stateChris Lattner2011-07-101-1/+1
| | | | | | | | | | caused us to skip layout out a function accurately. If so, flush the type cache for both the function and struct case to ensure that any pointers to the functions get recomputed. This is overconservative, but with this patch clang can build itself again. llvm-svn: 134863
* Fix the clang bootstrap and Jay's testcase from llvm-dev by being completelyChris Lattner2011-07-101-1/+1
| | | | | | | | | | conservative when converting a functiontype to IR when in a "pointer within a struct" context. This has the unfortunate sideeffect of compiling all function pointers inside of structs into "{}*" which, though correct, is ugly. This has the positive side effect of being correct, and it is pretty straight-forward to improve on this. llvm-svn: 134861
* Formatting.John McCall2011-04-121-11/+8
| | | | llvm-svn: 129336
* Pretty up the emission of field l-values and use volatile and TBAA whenJohn McCall2011-02-261-2/+2
| | | | | | | loading references as part of that. Use 'char' TBAA when accessing (immediate!) fields of a may_alias struct; fixes PR9307. llvm-svn: 126540
* Amazing that there are still issues with the fields of anonymous struct/unions..Argyrios Kyrtzidis2011-01-311-0/+14
| | | | | | Allow taking the address of such a field for a pointer-to-member constant. Fixes rdar://8818236. llvm-svn: 124575
* Fix test that didn't actually test what it wanted to test.Argyrios Kyrtzidis2011-01-311-4/+4
| | | | llvm-svn: 124574
* Fix PR8760: IndirectFieldDecl Type was not updated during template ↵Francois Pichet2010-12-091-0/+13
| | | | | | instantiation. llvm-svn: 121363
* Fix initialization for members of anonymous struct in a union.Argyrios Kyrtzidis2010-08-161-0/+12
| | | | llvm-svn: 111159
* When emitting an lvalue for an anonymous struct or union member duringJohn McCall2010-05-211-0/+26
| | | | | | | class initialization, drill down through an arbitrary number of anonymous records. llvm-svn: 104310
* Be sure to apply initializers to members of anonymous structs and unionsJohn McCall2010-05-201-0/+18
| | | | | | | | 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
* When a class contains a non-empty anonymous union or struct, mark isDouglas Gregor2010-05-031-1/+25
| | | | | | as non-empty. Fixes PR7021. llvm-svn: 102913
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - 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
* Fix an assertion when initializing a union using a member initializer. (We ↵Anders Carlsson2009-09-021-0/+12
weren't casting from the union type to the initializer type correctly). llvm-svn: 80837
OpenPOWER on IntegriCloud