[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-08 Thread Shilei Tian via cfe-commits
@@ -31,8 +30,8 @@ void SYCLInstallationDetector::addSYCLIncludeArgs( } // Unsupported options for SYCL device compilation. -static ArrayRef getUnsupportedOpts() { - return { +static ArrayRef getUnsupportedOpts() { shiltian wrote: maybe it's a good idea to re

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Michael Toguchi via cfe-commits
@@ -17,8 +17,7 @@ using namespace llvm::opt; SYCLInstallationDetector::SYCLInstallationDetector( const Driver &D, const llvm::Triple &HostTriple, -const llvm::opt::ArgList &Args) -: D(D) {} +const llvm::opt::ArgList &Args) {} mdtoguchi wrote:

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Michael Toguchi via cfe-commits
mdtoguchi wrote: Thanks @vitalybuka, makes sense to use the literal type here. https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/121822 >From 92796278b87c5713a0cf16119009c07f87568df5 Mon Sep 17 00:00:00 2001 From: Michael D Toguchi Date: Mon, 6 Jan 2025 11:42:12 -0800 Subject: [PATCH 1/4] Driver][SYCL] Address sanitizer and test issue The fo

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka requested changes to this pull request. Does not compile I'll update and merge. https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann approved this pull request. The changes look good to me! https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Paul Kirth via cfe-commits
@@ -32,7 +31,7 @@ void SYCLInstallationDetector::addSYCLIncludeArgs( // Unsupported options for SYCL device compilation. static ArrayRef getUnsupportedOpts() { - return { + static std::vector UnsupportedOpts = { ilovepi wrote: Hmm, I was thinking that you'd

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann edited https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/121822 >From 92796278b87c5713a0cf16119009c07f87568df5 Mon Sep 17 00:00:00 2001 From: Michael D Toguchi Date: Mon, 6 Jan 2025 11:42:12 -0800 Subject: [PATCH 1/3] Driver][SYCL] Address sanitizer and test issue The fo

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann edited https://github.com/llvm/llvm-project/pull/121822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Tom Honermann via cfe-commits
@@ -32,7 +31,7 @@ void SYCLInstallationDetector::addSYCLIncludeArgs( // Unsupported options for SYCL device compilation. static ArrayRef getUnsupportedOpts() { - return { + static std::vector UnsupportedOpts = { tahonermann wrote: Declaring the function `co

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
@@ -17,8 +17,7 @@ using namespace llvm::opt; SYCLInstallationDetector::SYCLInstallationDetector( const Driver &D, const llvm::Triple &HostTriple, -const llvm::opt::ArgList &Args) -: D(D) {} +const llvm::opt::ArgList &Args) {} vitalybuka wrote:

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Vitaly Buka via cfe-commits
@@ -32,7 +31,7 @@ void SYCLInstallationDetector::addSYCLIncludeArgs( // Unsupported options for SYCL device compilation. static ArrayRef getUnsupportedOpts() { - return { + static std::vector UnsupportedOpts = { vitalybuka wrote: and C array: UnsupportedOpt

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Paul Kirth via cfe-commits
@@ -32,7 +31,7 @@ void SYCLInstallationDetector::addSYCLIncludeArgs( // Unsupported options for SYCL device compilation. static ArrayRef getUnsupportedOpts() { - return { + static std::vector UnsupportedOpts = { ilovepi wrote: Can't this function be `conste

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Michael Toguchi via cfe-commits
https://github.com/mdtoguchi updated https://github.com/llvm/llvm-project/pull/121822 >From 92796278b87c5713a0cf16119009c07f87568df5 Mon Sep 17 00:00:00 2001 From: Michael D Toguchi Date: Mon, 6 Jan 2025 11:42:12 -0800 Subject: [PATCH 1/2] Driver][SYCL] Address sanitizer and test issue The fol

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Toguchi (mdtoguchi) Changes The following commit: https://github.com/llvm/llvm-project/commit/d00f65c6acd9f0e1ddae83391f55eb9d232d2f9e Caused sanitizer build issues and also a test issue when using %clang_cl. Address these proble

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Michael Toguchi (mdtoguchi) Changes The following commit: https://github.com/llvm/llvm-project/commit/d00f65c6acd9f0e1ddae83391f55eb9d232d2f9e Caused sanitizer build issues and also a test issue when using %clang_cl. Address these

[clang] Driver][SYCL] Address sanitizer and test issue (PR #121822)

2025-01-06 Thread Michael Toguchi via cfe-commits
https://github.com/mdtoguchi created https://github.com/llvm/llvm-project/pull/121822 The following commit: https://github.com/llvm/llvm-project/commit/d00f65c6acd9f0e1ddae83391f55eb9d232d2f9e Caused sanitizer build issues and also a test issue when using %clang_cl. Address these problems.