diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-11-19 15:13:39 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-11-19 15:13:57 +0000 |
| commit | 62462ec9a30fb07882a4e489d63763deefc12098 (patch) | |
| tree | 0e98c4faf4602cf12c525ac840b8477db8178347 | |
| parent | af335486c659fb6f5d065eb61014074045e4e81d (diff) | |
Fix assignment of allocated effect
2 files changed, 2 insertions, 2 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 2895b34b..74365d87 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -58,7 +58,7 @@ Locals: Instructions: ( - (alloc-heap (local "userDefinedEffect__State__0") (struct (int int))) + (alloc-heap (local "userDefinedEffectPointer__State__0") (struct (int int))) (alloc-heap (local "closurePointer__read__0") (struct (function-ptr (struct ())))) ( memory-store diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenEffects.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenEffects.java index 2ade62ee..b13165f6 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenEffects.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenEffects.java @@ -86,7 +86,7 @@ public class PatioCodeGenEffects { var effectLayout = userDefinedEffectLayout(effect, context); context = context.addInstruction(new PatioAllocHeap( - target, + effectPointer, effectLayout, source )); |
