summaryrefslogtreecommitdiffstats
path: root/build/build-clang/revert-llvmorg-14-init-3652-gf3c2094d8c11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'build/build-clang/revert-llvmorg-14-init-3652-gf3c2094d8c11.patch')
-rw-r--r--build/build-clang/revert-llvmorg-14-init-3652-gf3c2094d8c11.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/build/build-clang/revert-llvmorg-14-init-3652-gf3c2094d8c11.patch b/build/build-clang/revert-llvmorg-14-init-3652-gf3c2094d8c11.patch
new file mode 100644
index 0000000000..a8c032303a
--- /dev/null
+++ b/build/build-clang/revert-llvmorg-14-init-3652-gf3c2094d8c11.patch
@@ -0,0 +1,15 @@
+diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
+index 421ca95bb543..506af5d1458c 100644
+--- a/clang/lib/Sema/SemaDecl.cpp
++++ b/clang/lib/Sema/SemaDecl.cpp
+@@ -15219,10 +15219,6 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
+ // Add known guaranteed alignment for allocation functions.
+ switch (BuiltinID) {
+ case Builtin::BIaligned_alloc:
+- if (!FD->hasAttr<AllocAlignAttr>())
+- FD->addAttr(AllocAlignAttr::CreateImplicit(Context, ParamIdx(1, FD),
+- FD->getLocation()));
+- LLVM_FALLTHROUGH;
+ case Builtin::BIcalloc:
+ case Builtin::BImalloc:
+ case Builtin::BImemalign: