[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:
Louis Dionne 2018-08-21 15:54:24 +00:00
parent 6a943fb16a
commit 751381db5a
2 changed files with 2 additions and 2 deletions

View 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">;

View 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);
}
}