aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-02-11 00:18:00 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-02-11 00:18:00 +0000
commit41105ad37a2de9bccfcd8137ccfa869cc8345275 (patch)
tree70c76ac88529189c9dd2344d4c2fa6e009b9b507
parent8e9314fd846936ce04b92b2b72c6aba2cffab916 (diff)
const-qualify CXXRecordDecl::getCaptureFields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150284 91177308-0d34-0410-b5e6-96231b3b80d8
-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;