speed up compilation by 40% by not cloning everything

This commit is contained in:
2025-12-29 14:47:44 +01:00
parent 20499a8ee0
commit 9a60518e0e
2 changed files with 28 additions and 28 deletions

View File

@@ -34,7 +34,7 @@ fn compile_file_to(
for stmt in statements {
// top level statements are all function/const/extern declarations so a new env for each
codegen.compile_stmt(&mut codegen_x86_64::Env::new(), stmt)?;
codegen.compile_stmt(&mut codegen_x86_64::Env::new(), &stmt)?;
}
Ok(())
}