Adding fuzzer flags support to OpenBSD driver

Summary: - Following-up the sanitizer's part commit https://reviews.llvm.org/rCRT329631, we enable fuzzer flags.

Reviewers: brad, thakis, dberris

Reviewed By: dberris

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D44878

llvm-svn: 329779
This commit is contained in:
Dean Michael Berris 2018-04-11 05:40:47 +00:00
parent 9b4035a85a
commit bfd98d064a
1 changed files with 4 additions and 1 deletions

View File

@ -241,8 +241,11 @@ SanitizerMask OpenBSD::getSupportedSanitizers() const {
// For future use, only UBsan at the moment
SanitizerMask Res = ToolChain::getSupportedSanitizers();
if (IsX86 || IsX86_64)
if (IsX86 || IsX86_64) {
Res |= SanitizerKind::Vptr;
Res |= SanitizerKind::Fuzzer;
Res |= SanitizerKind::FuzzerNoLink;
}
return Res;
}