diff --git a/flang/lib/Lower/OpenMP/ReductionProcessor.cpp b/flang/lib/Lower/OpenMP/ReductionProcessor.cpp index d9aaa618241b58..c3c1f363033c27 100644 --- a/flang/lib/Lower/OpenMP/ReductionProcessor.cpp +++ b/flang/lib/Lower/OpenMP/ReductionProcessor.cpp @@ -70,14 +70,6 @@ ReductionProcessor::ReductionIdentifier ReductionProcessor::getReductionType( } } -void ReductionProcessor::addReductionSym( - const omp::clause::Reduction &reduction, - llvm::SmallVectorImpl &symbols) { - const auto &objectList{std::get(reduction.t)}; - llvm::transform(objectList, std::back_inserter(symbols), - [](const Object &object) { return object.sym(); }); -} - bool ReductionProcessor::supportedIntrinsicProcReduction( const omp::clause::ProcedureDesignator &pd) { semantics::Symbol *sym = pd.v.sym(); diff --git a/flang/lib/Lower/OpenMP/ReductionProcessor.h b/flang/lib/Lower/OpenMP/ReductionProcessor.h index 207c4b0eef2334..580d2cc54da98b 100644 --- a/flang/lib/Lower/OpenMP/ReductionProcessor.h +++ b/flang/lib/Lower/OpenMP/ReductionProcessor.h @@ -107,10 +107,6 @@ class ReductionProcessor { mlir::Type type, mlir::Value op1, mlir::Value op2); - static void addReductionSym( - const omp::clause::Reduction &reduction, - llvm::SmallVectorImpl &symbols); - /// Creates an OpenMP reduction declaration and inserts it into the provided /// symbol table. The declaration has a constant initializer with the neutral /// value `initValue`, and the reduction combiner carried over from `reduce`.