From a27320b53ec523207da90b3eee7e8c98571ac04a Mon Sep 17 00:00:00 2001 From: "Stefan J. Wernli" Date: Tue, 2 Apr 2024 06:43:34 -0700 Subject: [PATCH] Allow non-void entry point functions (#157) --- runner/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/src/lib.rs b/runner/src/lib.rs index 56d2dd72..4e8883db 100644 --- a/runner/src/lib.rs +++ b/runner/src/lib.rs @@ -131,7 +131,7 @@ unsafe fn run_entry_point( execution_engine: &ExecutionEngine, entry_point: FunctionValue, ) -> Result<(), String> { - if entry_point.count_params() == 0 && entry_point.get_type().get_return_type().is_none() { + if entry_point.count_params() == 0 { execution_engine.run_function(entry_point, &[]); Ok(()) } else {