| ... | @@ -1472,8 +1472,10 @@ pub const Object = struct { | ... | @@ -1472,8 +1472,10 @@ pub const Object = struct { |
| 1472 | _ = try attributes.removeFnAttr(.sanitize_thread); | 1472 | _ = try attributes.removeFnAttr(.sanitize_thread); |
| 1473 | } | 1473 | } |
| 1474 | const is_naked = fn_info.cc == .naked; | 1474 | const is_naked = fn_info.cc == .naked; |
| 1475 | if (owner_mod.fuzz and !func_analysis.disable_instrumentation and !is_naked) { | 1475 | if (!func_analysis.disable_instrumentation and !is_naked) { |
| 1476 | try attributes.addFnAttr(.optforfuzzing, &o.builder); | 1476 | if (owner_mod.fuzz) { |
| | 1477 | try attributes.addFnAttr(.optforfuzzing, &o.builder); |
| | 1478 | } |
| 1477 | _ = try attributes.removeFnAttr(.skipprofile); | 1479 | _ = try attributes.removeFnAttr(.skipprofile); |
| 1478 | _ = try attributes.removeFnAttr(.nosanitize_coverage); | 1480 | _ = try attributes.removeFnAttr(.nosanitize_coverage); |
| 1479 | } else { | 1481 | } else { |