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