diff options
author | Louis Dionne <ldionne@apple.com> | 2018-08-21 15:54:24 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2018-08-21 15:54:24 +0000 |
commit | 751381db5a39a6367007e6cad166c5f3c3427f2e (patch) | |
tree | 709968dfc307e644a7d757614294282799f46428 | |
parent | 6a943fb16a41852df0d840d5ce65c0497d46c93c (diff) | |
download | bcm5719-llvm-751381db5a39a6367007e6cad166c5f3c3427f2e.tar.gz bcm5719-llvm-751381db5a39a6367007e6cad166c5f3c3427f2e.zip |
[clang][NFC] Fix typo in the name of a note
Summary:
r306722 introduced a new note called note_silence_unligned_allocation_unavailable
where I believe what was meant is note_silence_aligned_allocation_unavailable.
Reviewers: ahatanak
Subscribers: dexonsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D51043
llvm-svn: 340288
-rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 853bc5eddc4..94cf03e19ee 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -6468,7 +6468,7 @@ def warn_overaligned_type : Warning< def err_aligned_allocation_unavailable : Error< "aligned %select{allocation|deallocation}0 function of type '%1' is only " "available on %2 %3 or newer">; -def note_silence_unligned_allocation_unavailable : Note< +def note_silence_aligned_allocation_unavailable : Note< "if you supply your own aligned allocation functions, use " "-faligned-allocation to silence this diagnostic">; diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 4b208ff6c30..1831430ad12 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -1744,7 +1744,7 @@ static void diagnoseUnavailableAlignedAllocation(const FunctionDecl &FD, S.Diag(Loc, diag::err_aligned_allocation_unavailable) << IsDelete << FD.getType().getAsString() << OSName << alignedAllocMinVersion(T.getOS()).getAsString(); - S.Diag(Loc, diag::note_silence_unligned_allocation_unavailable); + S.Diag(Loc, diag::note_silence_aligned_allocation_unavailable); } } |