authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2025-02-17 17:37:10+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-26 14:41:33-05:00
log466fa311b18e7178921f6e37d6b0244b3c707b5d
tree78734050b6e466037a3ba9e81365f0169bf237c6
parentc75fdd96d2cb9bd211ff20c7e9ee2ef119cc189f

`@deprecated`: optimize sema implementation

mlugg suggested a better way of implementing analysis of an istruction that cannot be referenced by other instructions.

1 files changed, 2 insertions(+), 1 deletions(-)

src/Sema.zig+2-1
...@@ -1412,7 +1412,8 @@ fn analyzeBodyInner(...@@ -1412,7 +1412,8 @@ fn analyzeBodyInner(
1412 return sema.fail(block, src, "found deprecated code", .{});1412 return sema.fail(block, src, "found deprecated code", .{});
1413 }1413 }
14141414
1415 break :ext .void_value;1415 i += 1;
1416 continue;
1416 },1417 },
1417 .disable_instrumentation => {1418 .disable_instrumentation => {
1418 try sema.zirDisableInstrumentation();1419 try sema.zirDisableInstrumentation();