]> granicus.if.org Git - clang/commitdiff
[clang][NFC] Fix typo in the name of a note
authorLouis Dionne <ldionne@apple.com>
Tue, 21 Aug 2018 15:54:24 +0000 (15:54 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 21 Aug 2018 15:54:24 +0000 (15:54 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340288 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprCXX.cpp

index 853bc5eddc4d25002b426d4a68ecf744c6c33432..94cf03e19ee384feac0fc509725a1ff719edf262 100644 (file)
@@ -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">;
 
index 4b208ff6c3006b6451bb29fa627b9c3a47a8e34a..1831430ad12ae43d4f4ea982859d36c240fd89e2 100644 (file)
@@ -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);
   }
 }