Skip to content

Commit 56a00d7

Browse files
committed
Simplify callExport() since the arguments parameter is const now
1 parent b2f97fe commit 56a00d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hera.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,7 @@ ExecutionResult execute(
331331
ModuleInstance instance(module, &interface);
332332

333333
try {
334-
Name main = Name("main");
335-
LiteralList args;
336-
instance.callExport(main, args);
334+
instance.callExport(Name("main"), LiteralList{});
337335
} catch (EndExecution const&) {
338336
// This exception is ignored here because we consider it to be a success.
339337
// It is only a clutch for POSIX style exit()

0 commit comments

Comments
 (0)