diff --git a/flang/lib/Optimizer/Builder/BoxValue.cpp b/flang/lib/Optimizer/Builder/BoxValue.cpp --- a/flang/lib/Optimizer/Builder/BoxValue.cpp +++ b/flang/lib/Optimizer/Builder/BoxValue.cpp @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// #include "flang/Optimizer/Builder/BoxValue.h" +#include "flang/Lower/Todo.h" #include "flang/Optimizer/Builder/FIRBuilder.h" #include "mlir/IR/BuiltinTypes.h" #include "llvm/Support/Debug.h" @@ -42,7 +43,8 @@ [=](const auto &x) { return fir::ExtendedValue(x.clone(base)); }); } -llvm::SmallVector fir::getTypeParams(const ExtendedValue &exv) { +llvm::SmallVector +fir::getTypeParams(const fir::ExtendedValue &exv) { using RT = llvm::SmallVector; auto baseTy = fir::getBase(exv).getType(); if (auto t = fir::dyn_cast_ptrEleTy(baseTy)) @@ -55,15 +57,13 @@ [](const fir::CharBoxValue &x) -> RT { return {x.getLen()}; }, [](const fir::CharArrayBoxValue &x) -> RT { return {x.getLen()}; }, [&](const fir::BoxValue &) -> RT { - LLVM_DEBUG(mlir::emitWarning( - loc, "TODO: box value is missing type parameters")); + TODO(loc, "box value is missing type parameters"); return {}; }, [&](const fir::MutableBoxValue &) -> RT { // In this case, the type params may be bound to the variable in an // ALLOCATE statement as part of a type-spec. - LLVM_DEBUG(mlir::emitWarning( - loc, "TODO: mutable box value is missing type parameters")); + TODO(loc, "mutable box value is missing type parameters"); return {}; }, [](const auto &) -> RT { return {}; });