diff options
| author | Larisse Voufo <lvoufo@google.com> | 2015-02-04 02:34:32 +0000 |
|---|---|---|
| committer | Larisse Voufo <lvoufo@google.com> | 2015-02-04 02:34:32 +0000 |
| commit | 404e142ed7605ab10982c9421e3930e92c8dd7d5 (patch) | |
| tree | 764474cfafeafa3e41756e70f9d5d21913b487d1 /clang/lib/Sema | |
| parent | 7d8ffc9cfb5ea83aa9e4a720cfaf2e257354400e (diff) | |
| download | bcm5719-llvm-404e142ed7605ab10982c9421e3930e92c8dd7d5.tar.gz bcm5719-llvm-404e142ed7605ab10982c9421e3930e92c8dd7d5.zip | |
Generalize r228066 to give all implicit global allocation functions default visibility.
llvm-svn: 228107
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 716e59458ae..c142efb11d5 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -2116,6 +2116,10 @@ void Sema::DeclareGlobalAllocationFunction(DeclarationName Name, SourceLocation(), Name, FnType, /*TInfo=*/nullptr, SC_None, false, true); Alloc->setImplicit(); + + // Implicit sized deallocation functions always have default visibility. + Alloc->addAttr(VisibilityAttr::CreateImplicit(Context, + VisibilityAttr::Default)); if (AddMallocAttr) Alloc->addAttr(MallocAttr::CreateImplicit(Context)); |

