aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/backends/wasm/WasmCodeGen.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/wasm/WasmCodeGen.java b/src/main/java/org/shedlang/compiler/backends/wasm/WasmCodeGen.java
index 443393d1..e71d1f15 100644
--- a/src/main/java/org/shedlang/compiler/backends/wasm/WasmCodeGen.java
+++ b/src/main/java/org/shedlang/compiler/backends/wasm/WasmCodeGen.java
@@ -36,9 +36,9 @@ public class WasmCodeGen {
case PushStringInstruction pushStringInstruction -> {
throw new UnsupportedOperationException("TODO");
}
- case PushUnitInstruction pushUnitInstruction -> {
- throw new UnsupportedOperationException("TODO");
- }
+ case PushUnitInstruction pushUnit ->
+ context.addInstruction(new WasmI32Const(0));
+
case ReturnInstruction returnInstruction -> {
throw new UnsupportedOperationException("TODO");
}