From 3256df2ff80be565095993b03f8e1edfd5072367 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 22 Jul 2024 18:02:24 -0700 Subject: llvm: always include instrumentation function attributes --- src/codegen/llvm.zig | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/codegen/llvm.zig') diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index eec0412492..f83d115b18 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -1392,16 +1392,12 @@ pub const Object = struct { } if (owner_mod.fuzz and !func_analysis.disable_instrumentation) { try attributes.addFnAttr(.optforfuzzing, &o.builder); - if (comp.config.any_fuzz) { - _ = try attributes.removeFnAttr(.skipprofile); - _ = try attributes.removeFnAttr(.nosanitize_coverage); - } + _ = try attributes.removeFnAttr(.skipprofile); + _ = try attributes.removeFnAttr(.nosanitize_coverage); } else { _ = try attributes.removeFnAttr(.optforfuzzing); - if (comp.config.any_fuzz) { - try attributes.addFnAttr(.skipprofile, &o.builder); - try attributes.addFnAttr(.nosanitize_coverage, &o.builder); - } + try attributes.addFnAttr(.skipprofile, &o.builder); + try attributes.addFnAttr(.nosanitize_coverage, &o.builder); } // TODO: disable this if safety is off for the function scope -- cgit v1.2.3