summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-18 18:51:03 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-18 18:51:03 +0000
commit745f9996d0b35d5dd21622c19e61f633038409b9 (patch)
tree5debce1e53e2b961d38276d3fffe2cf83e399e00 /clang/lib/Sema/SemaDecl.cpp
parentaa398c1617d6ebb5e6a3b3d2c0c7a98e8693525f (diff)
downloadbcm5719-llvm-745f9996d0b35d5dd21622c19e61f633038409b9.tar.gz
bcm5719-llvm-745f9996d0b35d5dd21622c19e61f633038409b9.zip
Remove the getDiagnosticLevel check since it doesn't buy us much.
llvm-svn: 119719
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index d36bd178e89..ceec0016e9a 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -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)
OpenPOWER on IntegriCloud