summaryrefslogtreecommitdiffstats
path: root/mlir/lib/ExecutionEngine
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-02-28 14:50:42 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:50:44 -0700
commited5fe2098be12d839cb4384e59a93f15f6f42e58 (patch)
treecf8d1cce87c0aff6af00fd90f0f42ff9f44e3212 /mlir/lib/ExecutionEngine
parent58889884a254894342b589309064782be64c3afd (diff)
downloadbcm5719-llvm-ed5fe2098be12d839cb4384e59a93f15f6f42e58.tar.gz
bcm5719-llvm-ed5fe2098be12d839cb4384e59a93f15f6f42e58.zip
Remove PassResult and have the runOnFunction/runOnModule functions return void instead. To signal a pass failure, passes should now invoke the 'signalPassFailure' method. This provides the equivalent functionality when needed, but isn't an intrusive part of the API like PassResult.
PiperOrigin-RevId: 236202029
Diffstat (limited to 'mlir/lib/ExecutionEngine')
-rw-r--r--mlir/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
index f0835da77d4..d47c0832771 100644
--- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -284,7 +284,7 @@ Expected<std::unique_ptr<ExecutionEngine>> ExecutionEngine::create(
// Construct and run the default MLIR pipeline.
PassManager manager;
getDefaultPasses(manager, {});
- if (manager.run(m))
+ if (!manager.run(m))
return make_string_error("passes failed");
auto llvmModule = translateModuleToLLVMIR(*m);
OpenPOWER on IntegriCloud