summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-30 23:33:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-30 23:33:33 +0000
commitfa139cd3bd48e02a5b8a79338365bb3462a0c869 (patch)
treed9a5f9d2712d9d1185363352267cd822f01b28b6 /clang/lib/Sema/SemaExprCXX.cpp
parentb4015e18776ea17a4e461a613042c3ac36ac728d (diff)
downloadbcm5719-llvm-fa139cd3bd48e02a5b8a79338365bb3462a0c869.tar.gz
bcm5719-llvm-fa139cd3bd48e02a5b8a79338365bb3462a0c869.zip
Remove -Wc++98-compat warning for an outrageously-rare circumstance of 'this'
being used in an exception specification in a way which isn't otherwise ill-formed in C++98: this warning also incorrectly triggered on uses of 'this' inside thread-safety attributes, and the mechanism required to tell these cases apart is more complex than can be justified by the (minimal) value of this part of -Wc++98-compat. llvm-svn: 155857
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 7d345073d79..af0f971c1ca 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -693,10 +693,6 @@ Sema::CXXThisScopeRAII::~CXXThisScopeRAII() {
}
void Sema::CheckCXXThisCapture(SourceLocation Loc, bool Explicit) {
- if (getLangOpts().CPlusPlus0x &&
- !dyn_cast_or_null<CXXMethodDecl>(getFunctionLevelDeclContext()))
- Diag(Loc, diag::warn_cxx98_compat_this_outside_method);
-
// We don't need to capture this in an unevaluated context.
if (ExprEvalContexts.back().Context == Unevaluated && !Explicit)
return;
OpenPOWER on IntegriCloud