[mlir][ExecutionEngine] propagate errors in mlirExecutionEngineCreate (#170592)

This commit is contained in:
Maksim Levental
2025-12-04 18:14:05 -05:00
committed by GitHub
parent 997f981d71
commit 772ff0436d
2 changed files with 7 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ def testInvalidModule():
func.func @foo() { return }
"""
)
# CHECK: error: cannot be converted to LLVM IR: missing `LLVMTranslationDialectInterface` registration for dialect for op: func.func
# CHECK: Got RuntimeError: Failure while creating the ExecutionEngine.
try:
execution_engine = ExecutionEngine(module)