diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-10-23 18:35:10 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-23 18:35:10 -0700 |
| commit | 46a6d50fdf4d26e8af22fb6a5207b9fab3d0777a (patch) | |
| tree | f16870c976c6146d87df33684a19a27e2af29e86 /src/Sema.zig | |
| parent | a07f288eb1772ac25fd0785b142c6ee7e09b2986 (diff) | |
| download | zig-46a6d50fdf4d26e8af22fb6a5207b9fab3d0777a.tar.gz zig-46a6d50fdf4d26e8af22fb6a5207b9fab3d0777a.zip | |
Sema: make `@src().line` comptime-known
Reverts 89cef9f5f731f8f33dc935aac3c21bd57c92900d.
Closes #13315
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index e3db1cfee0..418e9441f0 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -16883,10 +16883,7 @@ fn zirBuiltinSrc( // fn_name: [:0]const u8, func_name_val, // line: u32, - try mod.intern(.{ .runtime_value = .{ - .ty = .u32_type, - .val = (try mod.intValue(Type.u32, extra.line + 1)).toIntern(), - } }), + (try mod.intValue(Type.u32, extra.line + 1)).toIntern(), // column: u32, (try mod.intValue(Type.u32, extra.column + 1)).toIntern(), }; |
