summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLambda.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-08-10 00:55:35 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-08-10 00:55:35 +0000
commitf5697e5222a4eb59511436f145243ced225de6fa (patch)
treecc8ebb25859eb9882de65ece7ea15c83f45fd7cb /clang/lib/Sema/SemaLambda.cpp
parentf9fb079e7dad1f5725ea42e8865f5c12c48223c2 (diff)
downloadbcm5719-llvm-f5697e5222a4eb59511436f145243ced225de6fa.tar.gz
bcm5719-llvm-f5697e5222a4eb59511436f145243ced225de6fa.zip
Provide isConst/Volatile on CXXMethodDecl.
This also provides isConst/Volatile/Restrict on FunctionTypes to coalesce the implementation with other callers (& update those other callers). Patch contributed by Sam Panzer (panzer@google.com). llvm-svn: 161647
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
-rw-r--r--clang/lib/Sema/SemaLambda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp
index 3a10c2af915..6414c6fbac9 100644
--- a/clang/lib/Sema/SemaLambda.cpp
+++ b/clang/lib/Sema/SemaLambda.cpp
@@ -437,7 +437,7 @@ void Sema::ActOnStartOfLambdaDefinition(LambdaIntroducer &Intro,
LambdaScopeInfo *LSI
= enterLambdaScope(Method, Intro.Range, Intro.Default, ExplicitParams,
ExplicitResultType,
- (Method->getTypeQualifiers() & Qualifiers::Const) == 0);
+ !Method->isConst());
// Handle explicit captures.
SourceLocation PrevCaptureLoc
OpenPOWER on IntegriCloud