aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/DeclCXX.h2
-rw-r--r--lib/AST/DeclCXX.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h
index 5d333fa41b..6c3b418ee8 100644
--- a/include/clang/AST/DeclCXX.h
+++ b/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/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp
index b65daa5e5e..22a9eadaad 100644
--- a/lib/AST/DeclCXX.cpp
+++ b/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;