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 { ); } } -