mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 06:19:46 +08:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user