[clang] fbac3b0 - Revert "[clang][dataflow] Remove unused private field 'StmtToEnv' (NFC)"

Jie Fu via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 01:19:42 PST 2024


Author: Jie Fu
Date: 2024-01-12T17:17:39+08:00
New Revision: fbac3b0db5ff1d409f90219aeb6460ec5d14f19a

URL: https://github.com/llvm/llvm-project/commit/fbac3b0db5ff1d409f90219aeb6460ec5d14f19a
DIFF: https://github.com/llvm/llvm-project/commit/fbac3b0db5ff1d409f90219aeb6460ec5d14f19a.diff

LOG: Revert "[clang][dataflow] Remove unused private field 'StmtToEnv' (NFC)"

Revert it after 1aacdfe473276ad631db773310fe167ec93fb764

Added: 
    

Modified: 
    clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp b/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
index e0a3552a9cde17..faf83a8920d4ea 100644
--- a/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
+++ b/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
@@ -77,7 +77,7 @@ class TerminatorVisitor
 public:
   TerminatorVisitor(const StmtToEnvMap &StmtToEnv, Environment &Env,
                     int BlockSuccIdx)
-      : Env(Env), BlockSuccIdx(BlockSuccIdx) {}
+      : StmtToEnv(StmtToEnv), Env(Env), BlockSuccIdx(BlockSuccIdx) {}
 
   TerminatorVisitorRetTy VisitIfStmt(const IfStmt *S) {
     auto *Cond = S->getCond();
@@ -152,6 +152,7 @@ class TerminatorVisitor
     return {&Cond, ConditionValue};
   }
 
+  const StmtToEnvMap &StmtToEnv;
   Environment &Env;
   int BlockSuccIdx;
 };


        


More information about the cfe-commits mailing list