diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-10-31 05:37:48 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-10-31 05:37:48 +0000 |
commit | b070ebaa5ee94a6662b2db1f169088a69cb27ecd (patch) | |
tree | 1d4604d25a2c0e3f5b770debc08b956c87df2d5c /include/clang/Basic/Builtins.def | |
parent | 09c4e13586ec76befd0caa5ecc123371649b8999 (diff) |
Add support for __builtin_alloca_with_align
__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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.def')
-rw-r--r-- | include/clang/Basic/Builtins.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/Builtins.def b/include/clang/Basic/Builtins.def index 8d2746ba9c..de5332c444 100644 --- a/include/clang/Basic/Builtins.def +++ b/include/clang/Basic/Builtins.def @@ -512,6 +512,7 @@ BUILTIN(__builtin_unreachable, "v", "nr") BUILTIN(__builtin_shufflevector, "v." , "nc") BUILTIN(__builtin_convertvector, "v." , "nct") BUILTIN(__builtin_alloca, "v*z" , "Fn") +BUILTIN(__builtin_alloca_with_align, "v*zIz", "Fn") BUILTIN(__builtin_call_with_static_chain, "v.", "nt") // "Overloaded" Atomic operator builtins. These are overloaded to support data |