Skip to content

Commit 751381d

Browse files
committedAug 21, 2018
[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
1 parent 6a943fb commit 751381d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎clang/include/clang/Basic/DiagnosticSemaKinds.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -6468,7 +6468,7 @@ def warn_overaligned_type : Warning<
64686468
def err_aligned_allocation_unavailable : Error<
64696469
"aligned %select{allocation|deallocation}0 function of type '%1' is only "
64706470
"available on %2 %3 or newer">;
6471-
def note_silence_unligned_allocation_unavailable : Note<
6471+
def note_silence_aligned_allocation_unavailable : Note<
64726472
"if you supply your own aligned allocation functions, use "
64736473
"-faligned-allocation to silence this diagnostic">;
64746474

Diff for: ‎clang/lib/Sema/SemaExprCXX.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ static void diagnoseUnavailableAlignedAllocation(const FunctionDecl &FD,
17441744
S.Diag(Loc, diag::err_aligned_allocation_unavailable)
17451745
<< IsDelete << FD.getType().getAsString() << OSName
17461746
<< alignedAllocMinVersion(T.getOS()).getAsString();
1747-
S.Diag(Loc, diag::note_silence_unligned_allocation_unavailable);
1747+
S.Diag(Loc, diag::note_silence_aligned_allocation_unavailable);
17481748
}
17491749
}
17501750

0 commit comments

Comments
 (0)
Please sign in to comment.