зеркало из https://github.com/microsoft/clang-1.git
Remove the getDiagnosticLevel check since it doesn't buy us much.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5807d9cce3
Коммит
f4bed3f768
|
@ -4874,9 +4874,7 @@ void Sema::DiagnoseSizeOfParametersAndReturnValue(ParmVarDecl * const *Param,
|
|||
|
||||
// Warn if the return value is pass-by-value and larger than the specified
|
||||
// threshold.
|
||||
if (ReturnTy->isPODType() &&
|
||||
Diags.getDiagnosticLevel(diag::warn_return_value_size) !=
|
||||
Diagnostic::Ignored) {
|
||||
if (ReturnTy->isPODType()) {
|
||||
unsigned Size = Context.getTypeSizeInChars(ReturnTy).getQuantity();
|
||||
if (Size > LangOpts.NumLargeByValueCopy)
|
||||
Diag(D->getLocation(), diag::warn_return_value_size)
|
||||
|
|
Загрузка…
Ссылка в новой задаче