Value: eliminate static recursion loop from value printing

This commit is contained in:
mlugg
2024-07-16 11:37:53 +01:00
parent 67cd14dbdb
commit f84a4953d2
8 changed files with 154 additions and 110 deletions

View File

@@ -892,7 +892,7 @@ const DeclGen = struct {
const result_ty_id = try self.resolveType(ty, repr);
const ip = &mod.intern_pool;
log.debug("lowering constant: ty = {}, val = {}", .{ ty.fmt(pt), val.fmtValue(pt, null) });
log.debug("lowering constant: ty = {}, val = {}", .{ ty.fmt(pt), val.fmtValue(pt) });
if (val.isUndefDeep(mod)) {
return self.spv.constUndef(result_ty_id);
}