summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/builtin-alloca-with-align.c
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Warn when alignof is used with __builtin_alloca_with_alignDavid Majnemer2016-10-311-0/+4
| | | | | | | The second argument to __builtin_alloca_with_align is supposed to be in bits, not bytes. Using alignof there would be indicative of a bug. llvm-svn: 285609
* Add support for __builtin_alloca_with_alignDavid Majnemer2016-10-311-0/+29
__builtin_alloca always uses __BIGGEST_ALIGNMENT__ for the alignment of the allocation. __builtin_alloca_with_align allows the programmer to specify the alignment of the allocation. This fixes PR30658. llvm-svn: 285544
OpenPOWER on IntegriCloud