From 632e8385f3815a5e8e60d64ff0f12f1092b41a72 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Tue, 10 Dec 2024 10:57:59 +0100 Subject: [PATCH] locals stuff --- compiler/Lowerer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/Lowerer.ts b/compiler/Lowerer.ts index 4d1aafb..2239a17 100644 --- a/compiler/Lowerer.ts +++ b/compiler/Lowerer.ts @@ -23,6 +23,7 @@ class LocalsFnRoot implements Locals { allocSym(ident: string) { this.symLocalMap[ident] = this.localIdCounter; this.localIdCounter++; + this.reserveId(this.localIdCounter); } symId(ident: string): number { @@ -50,6 +51,7 @@ class LocalLeaf implements Locals { allocSym(ident: string) { this.symLocalMap[ident] = this.localIdCounter; this.localIdCounter++; + this.reserveId(this.localIdCounter); } symId(ident: string): number { @@ -176,4 +178,3 @@ export class Lowerer { ); } } -