-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jvm: Fix compilation of routines that produce a void result
This fixes the code for stubs for calls to features that do never return (Fuzion result type `void`), these need a `return` bytecode anyway to keep the JVM classfile verifier happy. Additionally, a feature's result field may not exist if the code produces a void value as in f i32 => panic "bah" so we must not attempt to read the result field in the epilog. This fixes the failure of tests/local_mutate when using the JVM backend.
- Loading branch information
Showing
2 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters