Skip to content

Commit fbac3b0

Browse files
committed
Revert "[clang][dataflow] Remove unused private field 'StmtToEnv' (NFC)"
Revert it after 1aacdfe
1 parent 9c9bffe commit fbac3b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class TerminatorVisitor
7777
public:
7878
TerminatorVisitor(const StmtToEnvMap &StmtToEnv, Environment &Env,
7979
int BlockSuccIdx)
80-
: Env(Env), BlockSuccIdx(BlockSuccIdx) {}
80+
: StmtToEnv(StmtToEnv), Env(Env), BlockSuccIdx(BlockSuccIdx) {}
8181

8282
TerminatorVisitorRetTy VisitIfStmt(const IfStmt *S) {
8383
auto *Cond = S->getCond();
@@ -152,6 +152,7 @@ class TerminatorVisitor
152152
return {&Cond, ConditionValue};
153153
}
154154

155+
const StmtToEnvMap &StmtToEnv;
155156
Environment &Env;
156157
int BlockSuccIdx;
157158
};

0 commit comments

Comments
 (0)