From 513d2c71276441d1951281eef0f27d5f94d1f738 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Thu, 7 Nov 2024 16:42:57 +0100 Subject: [PATCH] removing log line --- lang/README.md | 9 +++++++-- lang/src/son.rs | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lang/README.md b/lang/README.md index 1264e8d6..e404432f 100644 --- a/lang/README.md +++ b/lang/README.md @@ -628,9 +628,14 @@ main := fn(): uint { ```hb Structure := struct {} +BigStructure := struct {a: uint, b: uint} + returner_fn := fn(): ?Structure { - structure := Structure.() - return structure + return .() +} + +returner_bn := fn(): ?BigStructure { + return .(0, 0) } main := fn(): int { diff --git a/lang/src/son.rs b/lang/src/son.rs index 3b867a43..6e86225d 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -4267,7 +4267,6 @@ impl<'a> Codegen<'a> { match oty.loc(self.tys) { Loc::Reg => { - std::println!("{} {} {}", self.ty_display(oty), flag_offset, self.tys.size_of(oty)); self.strip_ptr(val); // registers have inverted offsets so that accessing the inner type is a noop let flag_offset = self.tys.size_of(oty) * 8 - flag_offset * 8 - 1;