const-qualify CXXRecordDecl::getCaptureFields.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150284 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h
index 5d333fa..6c3b418 100644
--- a/include/clang/AST/DeclCXX.h
+++ b/include/clang/AST/DeclCXX.h
@@ -943,7 +943,7 @@
   /// \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 b65daa5..22a9ead 100644
--- a/lib/AST/DeclCXX.cpp
+++ b/lib/AST/DeclCXX.cpp
@@ -979,7 +979,7 @@
 
 void CXXRecordDecl::getCaptureFields(
        llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
-       FieldDecl *&ThisCapture) {
+       FieldDecl *&ThisCapture) const {
   Captures.clear();
   ThisCapture = 0;