summaryrefslogtreecommitdiff
path: root/mlir/lib/Support
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2022-01-29 18:41:10 -0800
committerSanjoy Das <sanjoy@playingwithpointers.com>2022-01-30 14:07:10 -0800
commit8f66ab1c2e00ca3e94dbdd2e435fbf0fe28bbee9 (patch)
treeb227b726c6cec523f1c788f31a3c242a4a9ac2ad /mlir/lib/Support
parent73fd7d23046c1415b6be1bbe11c806edf3244837 (diff)
downloadllvm-8f66ab1c2e00ca3e94dbdd2e435fbf0fe28bbee9.tar.gz
Replace OwningModuleRef with OwningOpRef<ModuleOp>
This addresses a TODO in BuiltinOps.h. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D118574
Diffstat (limited to 'mlir/lib/Support')
-rw-r--r--mlir/lib/Support/MlirOptMain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Support/MlirOptMain.cpp b/mlir/lib/Support/MlirOptMain.cpp
index 6fa9a6657adc..b567097a9e0c 100644
--- a/mlir/lib/Support/MlirOptMain.cpp
+++ b/mlir/lib/Support/MlirOptMain.cpp
@@ -59,7 +59,7 @@ static LogicalResult performActions(raw_ostream &os, bool verifyDiagnostics,
// Parse the input file and reset the context threading state.
TimingScope parserTiming = timing.nest("Parser");
- OwningModuleRef module(parseSourceFile(sourceMgr, context));
+ OwningOpRef<ModuleOp> module(parseSourceFile(sourceMgr, context));
context->enableMultithreading(wasThreadingEnabled);
if (!module)
return failure();