summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/DeclCXX.h2
-rw-r--r--clang/lib/AST/DeclCXX.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DeclCXX.h b/clang/include/clang/AST/DeclCXX.h
index 5d333fa41bb..6c3b418ee8c 100644
--- a/clang/include/clang/AST/DeclCXX.h
+++ b/clang/include/clang/AST/DeclCXX.h
@@ -943,7 +943,7 @@ public:
/// \param ThisCapture Will be set to the field declaration for the
/// 'this' capture.
void getCaptureFields(llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
- FieldDecl *&ThisCapture);
+ FieldDecl *&ThisCapture) const;
/// getConversions - Retrieve the overload set containing all of the
/// conversion functions in this class.
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index b65daa5e5ed..22a9eadaad9 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -979,7 +979,7 @@ void CXXRecordDecl::setLambda(LambdaExpr *Lambda) {
void CXXRecordDecl::getCaptureFields(
llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
- FieldDecl *&ThisCapture) {
+ FieldDecl *&ThisCapture) const {
Captures.clear();
ThisCapture = 0;
OpenPOWER on IntegriCloud