[cfe-commits] r119719 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Nov 18 10:51:03 PST 2010


Author: akirtzidis
Date: Thu Nov 18 12:51:03 2010
New Revision: 119719

URL: http://llvm.org/viewvc/llvm-project?rev=119719&view=rev
Log:
Remove the getDiagnosticLevel check since it doesn't buy us much.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=119719&r1=119718&r2=119719&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Nov 18 12:51:03 2010
@@ -4874,9 +4874,7 @@
 
   // 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)





More information about the cfe-commits mailing list