stage2: LLVM backend: implement struct type fwd decls

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

No files matched your search

+1 -1
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);
}