diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-29 14:04:52 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-29 14:04:52 -0700 |
| commit | ea6706b6f406606a7523e35e34e390fb880b607e (patch) | |
| tree | e3d71639d007cbc528f13d30330fe04c0ac6cbf2 /src/Module.zig | |
| parent | 1d1f6a04214027da014cbc8eb780ff4c5e55f863 (diff) | |
| download | zig-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.zig | 2 |
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); } |
