diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-02-22 18:33:36 +0100 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-02-22 19:10:52 +0100 |
| commit | 69a6f31596647fa0fca12346edb69dbe5bbc703a (patch) | |
| tree | e01337b2dd4dbe7e7fc95898ba595d51cbc613a6 /lib/std/meta.zig | |
| parent | 6cc51d3c3311a5d37401ec141424b30f57f62693 (diff) | |
| download | zig-69a6f31596647fa0fca12346edb69dbe5bbc703a.tar.gz zig-69a6f31596647fa0fca12346edb69dbe5bbc703a.zip | |
Builder: fix llvm ir value names
Hello world now verifies when not stripped.
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index a94ad97041..e7dd4e5652 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -464,7 +464,8 @@ pub fn fieldNames(comptime T: type) *const [fields(T).len][:0]const u8 { return comptime blk: { const fieldInfos = fields(T); var names: [fieldInfos.len][:0]const u8 = undefined; - for (&names, fieldInfos) |*name, field| name.* = field.name; + // This concat can be removed with the next zig1 update. + for (&names, fieldInfos) |*name, field| name.* = field.name ++ ""; break :blk &names; }; } |
