[Git][ghc/ghc][wip/nr/typed-wasm-control-flow] render empty FT as void

Norman Ramsey (@nrnrnr) gitlab at gitlab.haskell.org
Tue Aug 9 17:02:25 UTC 2022



Norman Ramsey pushed to branch wip/nr/typed-wasm-control-flow at Glasgow Haskell Compiler / GHC


Commits:
5a38088e by Norman Ramsey at 2022-08-09T13:02:09-04:00
render empty FT as void

- - - - -


1 changed file:

- compiler/GHC/Wasm/ControlFlow/ToAsm.hs


Changes:

=====================================
compiler/GHC/Wasm/ControlFlow/ToAsm.hs
=====================================
@@ -32,7 +32,7 @@ noIndentation = ""
 
 
 wasmFunctionType :: WasmFunctionType pre post -> Builder
-wasmFunctionType (WasmFunctionType TypeListNil TypeListNil) = ""
+wasmFunctionType (WasmFunctionType TypeListNil TypeListNil) = "void"
 wasmFunctionType (WasmFunctionType TypeListNil (TypeListCons t TypeListNil)) = tagBuilder t
 wasmFunctionType _ = panic "function type needs to be externalized"
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5a38088ec4cae607e4fae60a1298540409f4a20c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5a38088ec4cae607e4fae60a1298540409f4a20c
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220809/a8b76a2e/attachment.html>


More information about the ghc-commits mailing list