================ @@ -25,10 +25,17 @@ namespace dataflow { /// Maps statements to the environments of basic blocks that contain them. class StmtToEnvMap { public: + // `CurBlock` is the block currently being processed, and `CurState` is the + // pending state currently associated with this block. These are supplied + // separately as the pending state for the current block may not yet be + // represented in `BlockToState`. StmtToEnvMap(const ControlFlowContext &CFCtx, llvm::ArrayRef<std::optional<TypeErasedDataflowAnalysisState>> - BlockToState) - : CFCtx(CFCtx), BlockToState(BlockToState) {} + BlockToState, + const CFGBlock &CurBlock, ---------------- martinboehme wrote:
Good point -- done. https://github.com/llvm/llvm-project/pull/78127 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits