| ... | @@ -1392,16 +1392,12 @@ pub const Object = struct { | ... | @@ -1392,16 +1392,12 @@ pub const Object = struct { |
| 1392 | } | 1392 | } |
| 1393 | if (owner_mod.fuzz and !func_analysis.disable_instrumentation) { | 1393 | if (owner_mod.fuzz and !func_analysis.disable_instrumentation) { |
| 1394 | try attributes.addFnAttr(.optforfuzzing, &o.builder); | 1394 | try attributes.addFnAttr(.optforfuzzing, &o.builder); |
| 1395 | if (comp.config.any_fuzz) { | 1395 | _ = try attributes.removeFnAttr(.skipprofile); |
| 1396 | _ = try attributes.removeFnAttr(.skipprofile); | 1396 | _ = try attributes.removeFnAttr(.nosanitize_coverage); |
| 1397 | _ = try attributes.removeFnAttr(.nosanitize_coverage); | | |
| 1398 | } | | |
| 1399 | } else { | 1397 | } else { |
| 1400 | _ = try attributes.removeFnAttr(.optforfuzzing); | 1398 | _ = try attributes.removeFnAttr(.optforfuzzing); |
| 1401 | if (comp.config.any_fuzz) { | 1399 | try attributes.addFnAttr(.skipprofile, &o.builder); |
| 1402 | try attributes.addFnAttr(.skipprofile, &o.builder); | 1400 | try attributes.addFnAttr(.nosanitize_coverage, &o.builder); |
| 1403 | try attributes.addFnAttr(.nosanitize_coverage, &o.builder); | | |
| 1404 | } | | |
| 1405 | } | 1401 | } |
| 1406 | | 1402 | |
| 1407 | // TODO: disable this if safety is off for the function scope | 1403 | // TODO: disable this if safety is off for the function scope |