diff --git a/flang/lib/Lower/ConvertExprToHLFIR.cpp b/flang/lib/Lower/ConvertExprToHLFIR.cpp --- a/flang/lib/Lower/ConvertExprToHLFIR.cpp +++ b/flang/lib/Lower/ConvertExprToHLFIR.cpp @@ -252,13 +252,7 @@ //===--------------------------------------------------------------------===// template -struct BinaryOp { - static hlfir::EntityWithAttributes gen(mlir::Location loc, - fir::FirOpBuilder &builder, const T &, - hlfir::Entity lhs, hlfir::Entity rhs) { - TODO(loc, "binary op implementation in HLFIR"); - } -}; +struct BinaryOp {}; #undef GENBIN #define GENBIN(GenBinEvOp, GenBinTyCat, GenBinFirOp) \ @@ -501,6 +495,17 @@ } }; +template +struct BinaryOp> { + using Op = Fortran::evaluate::SetLength; + static hlfir::EntityWithAttributes gen(mlir::Location loc, + fir::FirOpBuilder &builder, + const Op &op, hlfir::Entity lhs, + hlfir::Entity rhs) { + TODO(loc, "SetLength lowering to HLFIR"); + } +}; + /// Lower Expr to HLFIR. class HlfirBuilder { public: