From ea6706b6f406606a7523e35e34e390fb880b607e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 29 Sep 2021 14:04:52 -0700 Subject: stage2: LLVM backend: implement struct type fwd decls Makes struct types able to refer to themselves. --- src/Module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index 83bbbb6366..6c790d3804 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -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); } -- cgit v1.2.3