aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-03-17 14:55:22 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-03-17 14:55:22 -0700
commit5c4bbd0657d52b1b579036b9ee32418e8d706966 (patch)
treedebda5e9a9dd98a8e1ad3339c2a19730e604b0d7 /src/Module.zig
parentaea45bdf252c5040b1883e83014f31e2122427de (diff)
parentf56f3c5824af17516bcf3a0559b98cdad20bd416 (diff)
downloadzig-5c4bbd0657d52b1b579036b9ee32418e8d706966.tar.gz
zig-5c4bbd0657d52b1b579036b9ee32418e8d706966.zip
Merge remote-tracking branch 'origin/master' into llvm16
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Module.zig b/src/Module.zig
index c47e4fc234..17016865d1 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -4263,7 +4263,7 @@ pub fn ensureFuncBodyAnalyzed(mod: *Module, func: *Fn) SemaError!void {
comp.emit_llvm_bc == null);
const dump_air = builtin.mode == .Debug and comp.verbose_air;
- const dump_llvm_ir = builtin.mode == .Debug and comp.verbose_llvm_ir;
+ const dump_llvm_ir = builtin.mode == .Debug and (comp.verbose_llvm_ir != null or comp.verbose_llvm_bc != null);
if (no_bin_file and !dump_air and !dump_llvm_ir) return;
@@ -6395,7 +6395,7 @@ pub fn linkerUpdateDecl(mod: *Module, decl_index: Decl.Index) !void {
comp.emit_llvm_ir == null and
comp.emit_llvm_bc == null);
- const dump_llvm_ir = builtin.mode == .Debug and comp.verbose_llvm_ir;
+ const dump_llvm_ir = builtin.mode == .Debug and (comp.verbose_llvm_ir != null or comp.verbose_llvm_bc != null);
if (no_bin_file and !dump_llvm_ir) return;