diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2024-07-16 19:22:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 19:22:39 +0100 |
| commit | ee695c8ef40ae7cecb4b9a77c8a6dcbe53d4f013 (patch) | |
| tree | 91fbc76758cd5b2630c0f7f846e1b5fc7146369b /src/codegen.zig | |
| parent | a58ceb3d554a9565a6cc0443f6384149ae2b3145 (diff) | |
| parent | f84a4953d29ffc2bdc94fa353cac685430e6bbe4 (diff) | |
| download | zig-ee695c8ef40ae7cecb4b9a77c8a6dcbe53d4f013.tar.gz zig-ee695c8ef40ae7cecb4b9a77c8a6dcbe53d4f013.zip | |
Merge pull request #20637 from mlugg/comptime-resolution-strat
Type,Value: mark `ResolveStrat` parameter of type queries as `comptime`
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 9e0f4db305..f279141604 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -188,7 +188,7 @@ pub fn generateSymbol( const target = mod.getTarget(); const endian = target.cpu.arch.endian(); - log.debug("generateSymbol: val = {}", .{val.fmtValue(pt, null)}); + log.debug("generateSymbol: val = {}", .{val.fmtValue(pt)}); if (val.isUndefDeep(mod)) { const abi_size = math.cast(usize, ty.abiSize(pt)) orelse return error.Overflow; @@ -838,7 +838,7 @@ fn genDeclRef( const zcu = pt.zcu; const ip = &zcu.intern_pool; const ty = val.typeOf(zcu); - log.debug("genDeclRef: val = {}", .{val.fmtValue(pt, null)}); + log.debug("genDeclRef: val = {}", .{val.fmtValue(pt)}); const ptr_decl = zcu.declPtr(ptr_decl_index); const namespace = zcu.namespacePtr(ptr_decl.src_namespace); @@ -943,7 +943,7 @@ fn genUnnamedConst( owner_decl_index: InternPool.DeclIndex, ) CodeGenError!GenResult { const gpa = lf.comp.gpa; - log.debug("genUnnamedConst: val = {}", .{val.fmtValue(pt, null)}); + log.debug("genUnnamedConst: val = {}", .{val.fmtValue(pt)}); const local_sym_index = lf.lowerUnnamedConst(pt, val, owner_decl_index) catch |err| { return GenResult.fail(gpa, src_loc, "lowering unnamed constant failed: {s}", .{@errorName(err)}); @@ -985,7 +985,7 @@ pub fn genTypedValue( const ip = &zcu.intern_pool; const ty = val.typeOf(zcu); - log.debug("genTypedValue: val = {}", .{val.fmtValue(pt, null)}); + log.debug("genTypedValue: val = {}", .{val.fmtValue(pt)}); if (val.isUndef(zcu)) return GenResult.mcv(.undef); |
