diff --git a/mlir/include/mlir/Analysis/DataFlow/SparseAnalysis.h b/mlir/include/mlir/Analysis/DataFlow/SparseAnalysis.h index 387b9ee707179..48627f36c5145 100644 --- a/mlir/include/mlir/Analysis/DataFlow/SparseAnalysis.h +++ b/mlir/include/mlir/Analysis/DataFlow/SparseAnalysis.h @@ -255,10 +255,10 @@ class AbstractSparseForwardDataFlowAnalysis : public DataFlowAnalysis { /// operation `branch`, which can either be the entry block of one of the /// regions or the parent operation itself, and set either the argument or /// parent result lattices. - void visitRegionSuccessors(ProgramPoint *point, - RegionBranchOpInterface branch, - RegionBranchPoint successor, - ArrayRef lattices); + virtual void + visitRegionSuccessors(ProgramPoint *point, RegionBranchOpInterface branch, + RegionBranchPoint successor, + ArrayRef lattices); }; //===----------------------------------------------------------------------===//