Skip to content

Commit 47a4505

Browse files
committed
[probably NFC] Mix all sanitizers into module hash
Mixes the state of all sanitizers, not just the fuzzer, into the module hash used to decide whether to skip LLVM codegen. I don’t actually know of a case where one of the other sanitizers will generate identical IR and different machine code, but being defensive costs us very little.
1 parent f61dd7b commit 47a4505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/IRGenOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class IRGenOptions {
265265
<< 'd' << DisableLLVMOptzns
266266
<< 'D' << DisableSwiftSpecificLLVMOptzns
267267
<< 'p' << GenerateProfile
268-
<< 's' << Sanitizers.contains(SanitizerKind::Fuzzer);
268+
<< 's' << Sanitizers.toRaw();
269269
}
270270

271271
/// Should LLVM IR value names be emitted and preserved?

0 commit comments

Comments
 (0)