Skip to content

Commit 1b74d0f

Browse files
committed
fix driver test
1 parent 245d5ae commit 1b74d0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -663,10 +663,8 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
663663
if (Arg *A = Args.getLastArg(options::OPT_fsanitize_EQ,
664664
options::OPT_fno_sanitize_EQ)) {
665665
if (A->getOption().matches(options::OPT_fsanitize_EQ) &&
666-
A->getValues().size() == 1) {
667-
if (SanitizeVal == "address")
668-
SanitizeVal = A->getValue();
669-
}
666+
A->getValues().size() == 1)
667+
SanitizeVal = A->getValue();
670668
} else {
671669
// User can pass -fsanitize=address to device compiler via
672670
// -Xsycl-target-frontend, sanitize device library must be

0 commit comments

Comments
 (0)