]> granicus.if.org Git - clang/commitdiff
[analyzer] Constify
authorAnna Zaks <ganna@apple.com>
Fri, 20 Apr 2012 21:58:56 +0000 (21:58 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 20 Apr 2012 21:58:56 +0000 (21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155242 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h

index 59136fc314ae3dcb2d1e5d0da9fd793396269f33..f5984021d819f0b2480f1e64312fb6feace524ad 100644 (file)
@@ -188,10 +188,10 @@ public:
 
 // TODO: Turn into a calss.
 struct NodeBuilderContext {
-  CoreEngine &Eng;
+  const CoreEngine &Eng;
   const CFGBlock *Block;
   ExplodedNode *Pred;
-  NodeBuilderContext(CoreEngine &E, const CFGBlock *B, ExplodedNode *N)
+  NodeBuilderContext(const CoreEngine &E, const CFGBlock *B, ExplodedNode *N)
     : Eng(E), Block(B), Pred(N) { assert(B); assert(!N->isSink()); }
 
   ExplodedNode *getPred() const { return Pred; }