diff --git a/mlir/lib/Support/MlirOptMain.cpp b/mlir/lib/Support/MlirOptMain.cpp --- a/mlir/lib/Support/MlirOptMain.cpp +++ b/mlir/lib/Support/MlirOptMain.cpp @@ -202,7 +202,6 @@ std::string helpHeader = (toolName + "\nAvailable Dialects: ").str(); { llvm::raw_string_ostream os(helpHeader); - MLIRContext context; interleaveComma(registry.getDialectNames(), os, [&](auto name) { os << name; }); }