summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/transparent-union.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow attributes before union definitionErich Keane2017-02-281-0/+11
| | | | | | | | permits typedef union __attribute__((transparent_union)) {...} Differential Revision: https://reviews.llvm.org/D28266 llvm-svn: 296518
* Fix IRGen for passing transparent unionsReid Kleckner2014-11-151-7/+12
| | | | | | | | | We have had a test for this for a long time with a FIXME saying what we should be doing. This just does it. Fixes PR21573. llvm-svn: 222074
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-1/+1
| | | | | | tests fail. llvm-svn: 188447
* Update testcases due to Attribute sorting improvements.Bill Wendling2013-02-151-1/+1
| | | | llvm-svn: 175253
* Update the tests.Bill Wendling2013-01-311-1/+1
| | | | | | | This update coincides with r174110. That change ordered the attributes alphabetically. llvm-svn: 174111
* fix an unintended behavior change in the type system rewrite, which caused ↵Chris Lattner2011-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | us to compile stuff like this: typedef struct { int x, y, z; } foo_t; foo_t g; into: %"struct.<anonymous>" = type { i32, i32, i32 } we now get: %struct.foo_t = type { i32, i32, i32 } This doesn't change the behavior of the compiler, but makes the IR much easier to read. llvm-svn: 134969
* clang side to match the LLVM IR type system rewrite patch.Chris Lattner2011-07-091-1/+1
| | | | llvm-svn: 134831
* make the x86-32 backend specify a byval alignment, even when theChris Lattner2011-05-221-1/+1
| | | | | | | code generator will do it. With this patch, clang compiles the example in PR9794 to not have an alloca temporary. llvm-svn: 131881
* Fix a (probably very old) regression where we weren't using the typedef name ↵Anders Carlsson2010-11-241-1/+1
| | | | | | for anonymous tag types. llvm-svn: 120113
* Implement GNU C extension: two types are compatible if they appearPeter Collingbourne2010-10-241-1/+4
| | | | | | | as a function argument, one of the types is a transparent union type and the other type is compatible with a union member llvm-svn: 117243
* Sema/transparent_union: Make sure to add implicit cast when constructingDaniel Dunbar2010-09-171-0/+22
implicit union values for the transparent_union extension. llvm-svn: 114236
OpenPOWER on IntegriCloud