Skip to content

Commit 2aff1e3

Browse files
committed
remove SanitizeArg
1 parent 0ba0225 commit 2aff1e3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,14 +671,12 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
671671
};
672672

673673
std::string SanitizeVal;
674-
std::string SanitizeArg;
675674
size_t sanitizer_lib_idx = getSingleBuildTarget();
676675
if (Arg *A = Args.getLastArg(options::OPT_fsanitize_EQ,
677676
options::OPT_fno_sanitize_EQ)) {
678677
if (A->getOption().matches(options::OPT_fsanitize_EQ) &&
679678
A->getValues().size() == 1) {
680679
SanitizeVal = A->getValue();
681-
SanitizeArg = A->getAsString(Args);
682680
}
683681
} else {
684682
// User can pass -fsanitize=address to device compiler via
@@ -703,12 +701,10 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
703701
for (const std::string &Arg : ArgVals) {
704702
if (Arg.find("-fsanitize=address") != std::string::npos) {
705703
SanitizeVal = "address";
706-
SanitizeArg = Arg;
707704
break;
708705
}
709706
if (Arg.find("-fsanitize=memory") != std::string::npos) {
710707
SanitizeVal = "memory";
711-
SanitizeArg = Arg;
712708
break;
713709
}
714710
}

0 commit comments

Comments
 (0)