Skip to content

Commit 6b937eb

Browse files
committed
Remove sanitizer support checks
1 parent 3fdc746 commit 6b937eb

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ SYCLToolChain::SYCLToolChain(const Driver &D, const llvm::Triple &Triple,
8181
// Diagnose unsupported options only once.
8282
for (OptSpecifier Opt : getUnsupportedOpts()) {
8383
if (const Arg *A = Args.getLastArg(Opt)) {
84-
// All sanitizer options are not currently supported, except
85-
// AddressSanitizer.
86-
if (A->getOption().getID() == options::OPT_fsanitize_EQ &&
87-
A->getValues().size() == 1) {
88-
std::string SanitizeVal = A->getValue();
89-
if (SanitizeVal == "address")
90-
continue;
91-
}
9284
D.Diag(clang::diag::warn_drv_unsupported_option_for_target)
9385
<< A->getAsString(Args) << getTriple().str();
9486
}
@@ -173,7 +165,3 @@ void SYCLToolChain::AddClangCXXStdlibIncludeArgs(const ArgList &Args,
173165
ArgStringList &CC1Args) const {
174166
HostTC.AddClangCXXStdlibIncludeArgs(Args, CC1Args);
175167
}
176-
177-
SanitizerMask SYCLToolChain::getSupportedSanitizers() const {
178-
return SanitizerKind::Address;
179-
}

clang/lib/Driver/ToolChains/SYCL.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
6767
const llvm::opt::ArgList &Args,
6868
llvm::opt::ArgStringList &CC1Args) const override;
6969

70-
SanitizerMask getSupportedSanitizers() const override;
71-
7270
private:
7371
const ToolChain &HostTC;
7472
SYCLInstallationDetector SYCLInstallation;

0 commit comments

Comments
 (0)