aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-09-29 14:04:52 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-09-29 14:04:52 -0700
commitea6706b6f406606a7523e35e34e390fb880b607e (patch)
treee3d71639d007cbc528f13d30330fe04c0ac6cbf2 /src/Module.zig
parent1d1f6a04214027da014cbc8eb780ff4c5e55f863 (diff)
downloadzig-ea6706b6f406606a7523e35e34e390fb880b607e.tar.gz
zig-ea6706b6f406606a7523e35e34e390fb880b607e.zip
stage2: LLVM backend: implement struct type fwd decls
Makes struct types able to refer to themselves.
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
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);
}