[Git][ghc/ghc][wip/nr/typed-wasm-control-flow] add builder case for fallthrough

Norman Ramsey (@nrnrnr) gitlab at gitlab.haskell.org
Mon Aug 8 22:06:54 UTC 2022



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


Commits:
c5c02967 by Norman Ramsey at 2022-08-08T18:06:40-04:00
add builder case for fallthrough

- - - - -


1 changed file:

- compiler/GHC/Wasm/Builder.hs


Changes:

=====================================
compiler/GHC/Wasm/Builder.hs
=====================================
@@ -65,6 +65,8 @@ printWithIndent indent s = print s
         print (WasmActions as) = myActions as
         print (s `WasmSeq` s') = print s `newline` print s'
 
+        print WasmFallthrough = "// fallthrough" -- hopefully rare
+
         newline s s' = s <> "\n" <> indent <> s'
         outdent s = defaultIndent <> printWithIndent (indent <> defaultIndent) s
         s <+> s' = s <> " " <> s'



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c5c029678376197ddd365ba2665c361dd908502d
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/20220808/b7dd3af9/attachment.html>


More information about the ghc-commits mailing list