Skip to content

Commit

Permalink
[mlir] Adopt changes in mlir-opt to standalone example
Browse files Browse the repository at this point in the history
 MLIRContext was moved with commit 6bce7d8

Differential Revision: https://reviews.llvm.org/D79946
  • Loading branch information
marbre authored and joker-eph committed May 14, 2020
1 parent e7c91e3 commit 426afd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/examples/standalone/standalone-opt/standalone-opt.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit 426afd7

Please sign in to comment.