Skip to content

Commit 7a884f0

Browse files
committed
fix win build
1 parent a7eed82 commit 7a884f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
720720
addLibraries(SYCLDeviceMsanLibs);
721721
#else // _WIN32
722722
if (!SanitizeVal.empty())
723-
D.Diag(diag::warn_drv_unsupported_option_for_target)
724-
<< SanitizeArg << Target.str();
723+
C.getDriver().Diag(diag::warn_drv_unsupported_option_for_target)
724+
<< SanitizeArg << TargetTriple.str();
725725
#endif
726726

727727
if (isNativeCPU)

0 commit comments

Comments
 (0)