Skip to content

Commit a7eed82

Browse files
committed
fix window build
1 parent faf9b59 commit a7eed82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
719719
else if (SanitizeVal == "memory")
720720
addLibraries(SYCLDeviceMsanLibs);
721721
#else // _WIN32
722-
if (SanitizeVal)
722+
if (!SanitizeVal.empty())
723723
D.Diag(diag::warn_drv_unsupported_option_for_target)
724724
<< SanitizeArg << Target.str();
725725
#endif

0 commit comments

Comments
 (0)