1 diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
2 index 421ca95bb543..506af5d1458c 100644
3 --- a/clang/lib/Sema/SemaDecl.cpp
4 +++ b/clang/lib/Sema/SemaDecl.cpp
5 @@ -15219,10 +15219,6 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
6 // Add known guaranteed alignment for allocation functions.
8 case Builtin::BIaligned_alloc:
9 - if (!FD->hasAttr<AllocAlignAttr>())
10 - FD->addAttr(AllocAlignAttr::CreateImplicit(Context, ParamIdx(1, FD),
11 - FD->getLocation()));
13 case Builtin::BIcalloc:
14 case Builtin::BImalloc:
15 case Builtin::BImemalign: