Skip to content

Commit 7a0ecf0

Browse files
authored
Merge pull request #8935 from apple/eng/PR-130582893-stable/20230725
[Driver] Disable -fsanitize=function for all MachO (except x86)
2 parents 9ba3850 + c38e0ed commit 7a0ecf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
563563

564564
Kinds |= Default;
565565

566-
if (TC.getTriple().isOSDarwin() && !TC.getTriple().isX86())
566+
if (TC.getTriple().isOSBinFormatMachO() && !TC.getTriple().isX86())
567567
Kinds &= ~SanitizerKind::Function;
568568

569569
// We disable the vptr sanitizer if it was enabled by group expansion but RTTI

0 commit comments

Comments
 (0)