forked from OSchip/llvm-project
[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
This commit is contained in:
parent
6a943fb16a
commit
751381db5a
|
@ -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">;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue