]> granicus.if.org Git - clang/commitdiff
Ensure that the Decl* wrapped by an AnalysisDeclContext cannot be changed after
authorTed Kremenek <kremenek@apple.com>
Fri, 21 Sep 2012 00:09:03 +0000 (00:09 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 21 Sep 2012 00:09:03 +0000 (00:09 +0000)
construction.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164337 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/AnalysisContext.h

index 3c9caf4593127fdd091e5beaa7449f4c17d3ba53..8dca38df7447e21c5d33768fa599eb6fef5b5035 100644 (file)
@@ -72,7 +72,7 @@ class AnalysisDeclContext {
   /// AnalysisDeclContext. This may be null.
   AnalysisDeclContextManager *Manager;
 
-  const Decl *D;
+  const Decl * const D;
 
   OwningPtr<CFG> cfg, completeCFG;
   OwningPtr<CFGStmtMap> cfgStmtMap;