diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-25 21:44:10 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-25 21:44:10 -0800 |
| commit | 9dda2eb1abe675a99ff5d7ad85454b1cc5946c95 (patch) | |
| tree | a50f2d52e8a0745ce1f72bae25d609c448a485e6 /src/Sema.zig | |
| parent | 91fb211faa3f37d08da55b0c8df92a6475624316 (diff) | |
| parent | ed026b5dffd116d36aa51508e3eefa8c36838c07 (diff) | |
| download | zig-9dda2eb1abe675a99ff5d7ad85454b1cc5946c95.tar.gz zig-9dda2eb1abe675a99ff5d7ad85454b1cc5946c95.zip | |
Merge pull request #19080 from jacobly0/llvm-per-mod-strip
llvm: implement per-module stripping
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index bfc9aa3adc..741c4e2fba 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -6407,8 +6407,6 @@ fn zirDbgVar( inst: Zir.Inst.Index, air_tag: Air.Inst.Tag, ) CompileError!void { - if (block.is_comptime or block.ownerModule().strip) return; - const str_op = sema.code.instructions.items(.data)[@intFromEnum(inst)].str_op; const operand = try sema.resolveInst(str_op.operand); const name = str_op.getStr(sema.code); @@ -6422,6 +6420,8 @@ fn addDbgVar( air_tag: Air.Inst.Tag, name: []const u8, ) CompileError!void { + if (block.is_comptime or block.ownerModule().strip) return; + const mod = sema.mod; const operand_ty = sema.typeOf(operand); const val_ty = switch (air_tag) { |
