aboutsummaryrefslogtreecommitdiff
path: root/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
commitf4bed3f768a1effac21f3089f4c05f9ab9c37fe3 (patch)
tree389ca47de355775d59bcb421503a1b92df8280e3 /lib/Sema/SemaDecl.cpp
parent5807d9cce3f0ab4366bed9470355433c7b562c8d (diff)
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
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index d36bd178e8..ceec0016e9 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/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)