Skip to content

Commit 29a9d00

Browse files
committed
Added missing call to the checker's Initialize() method in the alternate
ctor for GREngine. llvm-svn: 46080
1 parent 34eb8bb commit 29a9d00

File tree

1 file changed

+4
-2
lines changed
  • clang/include/clang/Analysis/PathSensitive

1 file changed

+4
-2
lines changed

clang/include/clang/Analysis/PathSensitive/GREngine.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class GREngine : public GREngineImpl {
195195
public:
196196
/// Construct a GREngine object to analyze the provided CFG using
197197
/// a DFS exploration of the exploded graph.
198-
GREngine(CFG& Cfg)
198+
GREngine(CFG& cfg)
199199
: GREngineImpl(cfg, new GraphTy(), GRWorkList::MakeDFS()),
200200
Checker(static_cast<GraphTy*>(G.get())->getCheckerState()) {
201201
Checker->Initialize(cfg);
@@ -206,7 +206,9 @@ class GREngine : public GREngineImpl {
206206
/// The GREngine object assumes ownership of 'wlist'.
207207
GREngine(CFG& cfg, GRWorkList* wlist)
208208
: GREngineImpl(cfg, new GraphTy(), wlist),
209-
Checker(static_cast<GraphTy*>(G.get())->getCheckerState()) {}
209+
Checker(static_cast<GraphTy*>(G.get())->getCheckerState()) {
210+
Checker->Initialize(cfg);
211+
}
210212

211213
virtual ~GREngine() {}
212214

0 commit comments

Comments
 (0)