diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp --- a/flang/lib/Lower/OpenACC.cpp +++ b/flang/lib/Lower/OpenACC.cpp @@ -526,29 +526,6 @@ } } -template -static void genObjectListWithModifier( - const Clause *x, Fortran::lower::AbstractConverter &converter, - Fortran::semantics::SemanticsContext &semanticsContext, - Fortran::lower::StatementContext &stmtCtx, - Fortran::parser::AccDataModifier::Modifier mod, - llvm::SmallVectorImpl &operandsWithModifier, - llvm::SmallVectorImpl &operands) { - const Fortran::parser::AccObjectListWithModifier &listWithModifier = x->v; - const auto &accObjectList = - std::get(listWithModifier.t); - const auto &modifier = - std::get>( - listWithModifier.t); - if (modifier && (*modifier).v == mod) { - genObjectList(accObjectList, converter, semanticsContext, stmtCtx, - operandsWithModifier); - } else { - genObjectList(accObjectList, converter, semanticsContext, stmtCtx, - operands); - } -} - static void addOperands(llvm::SmallVectorImpl &operands, llvm::SmallVectorImpl &operandSegments,