[MLIR][NFC] Remove unused MLIRContext declaration
authorUday Bondhugula <uday@polymagelabs.com>
Sat, 8 May 2021 13:15:14 +0000 (18:45 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Sat, 8 May 2021 13:37:24 +0000 (19:07 +0530)
Remove unused MLIRContext declaration. NFC.

Differential Revision: https://reviews.llvm.org/D102103

mlir/lib/Support/MlirOptMain.cpp

index a5b4fda..f3f9ec3 100644 (file)
@@ -202,7 +202,6 @@ LogicalResult mlir::MlirOptMain(int argc, char **argv, llvm::StringRef toolName,
   std::string helpHeader = (toolName + "\nAvailable Dialects: ").str();
   {
     llvm::raw_string_ostream os(helpHeader);
-    MLIRContext context;
     interleaveComma(registry.getDialectNames(), os,
                     [&](auto name) { os << name; });
   }