From: Ted Kremenek Date: Fri, 21 Sep 2012 00:09:03 +0000 (+0000) Subject: Ensure that the Decl* wrapped by an AnalysisDeclContext cannot be changed after X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cca300a91966df70c9c320e477a3c26ba622673d;p=clang Ensure that the Decl* wrapped by an AnalysisDeclContext cannot be changed after construction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164337 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/AnalysisContext.h b/include/clang/Analysis/AnalysisContext.h index 3c9caf4593..8dca38df74 100644 --- a/include/clang/Analysis/AnalysisContext.h +++ b/include/clang/Analysis/AnalysisContext.h @@ -72,7 +72,7 @@ class AnalysisDeclContext { /// AnalysisDeclContext. This may be null. AnalysisDeclContextManager *Manager; - const Decl *D; + const Decl * const D; OwningPtr cfg, completeCFG; OwningPtr cfgStmtMap;