Skip to content

Commit 18933c7

Browse files
committed
Fix for initial register allocation
1 parent 1338513 commit 18933c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Node.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class Let : Node {
152152
left = e;
153153
}
154154
override void codegen() {
155+
Expr.clearRegs();
155156
left.codegen();
156157
writeln("\tadrl\tr0, .", symtab.getId(ident));
157158
writeln("\tvstr.f64\td", (cast(Expr)left).result, ", [r0]");

0 commit comments

Comments
 (0)