@deprecated: optimize sema implementation

mlugg suggested a better way of implementing analysis of an istruction
that cannot be referenced by other instructions.
This commit is contained in:
Loris Cro
2025-02-17 17:37:10 +01:00
committed by Andrew Kelley
parent c75fdd96d2
commit 466fa311b1

View File

@@ -1412,7 +1412,8 @@ fn analyzeBodyInner(
return sema.fail(block, src, "found deprecated code", .{});
}
break :ext .void_value;
i += 1;
continue;
},
.disable_instrumentation => {
try sema.zirDisableInstrumentation();