| ... | @@ -1174,8 +1174,10 @@ pub const Object = struct { | ... | @@ -1174,8 +1174,10 @@ pub const Object = struct { |
| 1174 | _ = try attributes.removeFnAttr(.sanitize_thread); | 1174 | _ = try attributes.removeFnAttr(.sanitize_thread); |
| 1175 | } | 1175 | } |
| 1176 | const is_naked = fn_info.cc == .naked; | 1176 | const is_naked = fn_info.cc == .naked; |
| 1177 | if (owner_mod.fuzz and !func_analysis.disable_instrumentation and !is_naked) { | 1177 | if (!func_analysis.disable_instrumentation and !is_naked) { |
| 1178 | try attributes.addFnAttr(.optforfuzzing, &o.builder); | 1178 | if (owner_mod.fuzz) { |
| | 1179 | try attributes.addFnAttr(.optforfuzzing, &o.builder); |
| | 1180 | } |
| 1179 | _ = try attributes.removeFnAttr(.skipprofile); | 1181 | _ = try attributes.removeFnAttr(.skipprofile); |
| 1180 | _ = try attributes.removeFnAttr(.nosanitize_coverage); | 1182 | _ = try attributes.removeFnAttr(.nosanitize_coverage); |
| 1181 | } else { | 1183 | } else { |