stage2: LLVM backend: implement struct type fwd decls

Makes struct types able to refer to themselves.
This commit is contained in:
Andrew Kelley
2021-09-29 14:04:52 -07:00
parent 1d1f6a0421
commit ea6706b6f4
6 changed files with 154 additions and 82 deletions

View File

@@ -813,7 +813,7 @@ pub const Struct = struct {
is_comptime: bool,
};
pub fn getFullyQualifiedName(s: *Struct, gpa: *Allocator) ![]u8 {
pub fn getFullyQualifiedName(s: *Struct, gpa: *Allocator) ![:0]u8 {
return s.owner_decl.getFullyQualifiedName(gpa);
}