mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
llvm: always include instrumentation function attributes
This commit is contained in:
parent
5058beb179
commit
3256df2ff8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user