From 2606cf93b70556a481e8d2dc076a6efc0c817800 Mon Sep 17 00:00:00 2001 From: Westsi <76999267+Westsi@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:38:11 -0400 Subject: [PATCH] fix --- codegen/x86_64_as/gen.go | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/x86_64_as/gen.go b/codegen/x86_64_as/gen.go index e722d4e..20d5baa 100644 --- a/codegen/x86_64_as/gen.go +++ b/codegen/x86_64_as/gen.go @@ -168,6 +168,7 @@ func (g *X64Generator) GenerateExpression(node ast.Expression) StorageLoc { g.GenerateWhileLoop(node) case *ast.CallExpression: g.GenerateCall(node) + return RAX } return NULLSTORAGE }