diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-30 23:33:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-30 23:33:33 +0000 |
commit | aa5498649c7ad1b61e5da2497e8c60c924ac5e55 (patch) | |
tree | 27b5c46390520d6b72dede160cb8de0832a35aa1 /lib | |
parent | e720ce7a3b1c1bfa5f7482183caa6e31fca9a3fb (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 7d345073d7..af0f971c1c 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/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; |