From ccec3ef3e6d860df92daccd7e4d3016e6bd13f2b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 8 Oct 2023 12:30:38 +0100 Subject: Push temporary when generating Patio code for switch --- src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java index 3510a249..66c2faf4 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java @@ -557,6 +557,8 @@ public class PatioCodeGen { switch_.source() )); + context = context.temporaryPush(target); + yield context; } -- cgit v1.2.3