]> granicus.if.org Git - clang/commitdiff
Constify method.
authorTed Kremenek <kremenek@apple.com>
Fri, 21 Sep 2012 00:09:05 +0000 (00:09 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 21 Sep 2012 00:09:05 +0000 (00:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164338 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/AnalysisContext.h

index 8dca38df7447e21c5d33768fa599eb6fef5b5035..45dd24718a48fc7b2064734f98e40337f765577f 100644 (file)
@@ -101,7 +101,7 @@ public:
 
   ~AnalysisDeclContext();
 
-  ASTContext &getASTContext() { return D->getASTContext(); }
+  ASTContext &getASTContext() const { return D->getASTContext(); }
   const Decl *getDecl() const { return D; }
 
   /// Return the build options used to construct the CFG.