File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -6526,15 +6526,13 @@ fn addDbgVar(
65266526) CompileError!void {
65276527 const mod = sema.mod;
65286528 const operand_ty = sema.typeOf(operand);
6529- switch (air_tag) {
6530- .dbg_var_ptr => {
6531- if (!(try sema.typeHasRuntimeBits(operand_ty.childType(mod)))) return;
6532- },
6533- .dbg_var_val => {
6534- if (!(try sema.typeHasRuntimeBits(operand_ty))) return;
6535- },
6529+ const val_ty = switch (air_tag) {
6530+ .dbg_var_ptr => operand_ty.childType(mod),
6531+ .dbg_var_val => operand_ty,
65366532 else => unreachable,
6537- }
6533+ };
6534+ if (try sema.typeRequiresComptime(val_ty)) return;
6535+ if (!(try sema.typeHasRuntimeBits(val_ty))) return;
65386536
65396537 try sema.queueFullTypeResolution(operand_ty);
65406538
You can’t perform that action at this time.
0 commit comments