diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 20:40:09 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 20:40:09 +0000 |
| commit | fa7c6c438116a9ef4b0d323198d5f079e9288c56 (patch) | |
| tree | 287b04b9b137b399dee9c9ad759b32718b0a2146 /src/main/java | |
| parent | 8c6b1e846edd51d14bfbee978afcffe660baa190 (diff) | |
Use PatioCodeGenAlloc in PatioCodeGenVars
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/patio/PatioCodeGenVars.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenVars.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenVars.java index 5a600b54..c87d52b4 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenVars.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenVars.java @@ -1,6 +1,5 @@ package org.shedlang.compiler.patio; -import org.shedlang.compiler.patio.ast.instructions.PatioAllocHeap; import org.shedlang.compiler.patio.ast.instructions.PatioMemoryLoad; import org.shedlang.compiler.patio.ast.instructions.PatioMemoryStore; import org.shedlang.compiler.patio.ast.operands.PatioLocalRef; @@ -33,11 +32,12 @@ public class PatioCodeGenVars { var patioLocal = patioLocalResult.value(); context = patioLocalResult.context(); - context = context.addInstruction(new PatioAllocHeap( + context = PatioCodeGenAlloc.alloc( patioLocal, VAR_DATA_LAYOUT, - source - )); + source, + context + ); context = context.initShidLocal(shidName); |
