From 426afd79da70ec8c7f82164d007fe7045e5fe05e Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Thu, 14 May 2020 17:49:44 +0000 Subject: [PATCH] [mlir] Adopt changes in mlir-opt to standalone example MLIRContext was moved with commit 6bce7d8 Differential Revision: https://reviews.llvm.org/D79946 --- mlir/examples/standalone/standalone-opt/standalone-opt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/examples/standalone/standalone-opt/standalone-opt.cpp b/mlir/examples/standalone/standalone-opt/standalone-opt.cpp index 80c68f658bdbf5..5c99058693c3ec 100644 --- a/mlir/examples/standalone/standalone-opt/standalone-opt.cpp +++ b/mlir/examples/standalone/standalone-opt/standalone-opt.cpp @@ -73,8 +73,8 @@ int main(int argc, char **argv) { llvm::cl::ParseCommandLineOptions(argc, argv, "MLIR modular optimizer driver\n"); - mlir::MLIRContext context; if (showDialects) { + mlir::MLIRContext context; llvm::outs() << "Registered Dialects:\n"; for (mlir::Dialect *dialect : context.getRegisteredDialects()) { llvm::outs() << dialect->getNamespace() << "\n";