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

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 13:12:15 PST 2025


================
@@ -32,7 +31,7 @@ void SYCLInstallationDetector::addSYCLIncludeArgs(
 
 // Unsupported options for SYCL device compilation.
 static ArrayRef<OptSpecifier> getUnsupportedOpts() {
-  return {
+  static std::vector<OptSpecifier> UnsupportedOpts = {
----------------
vitalybuka wrote:

and C array: UnsupportedOpts[] = {
}

https://github.com/llvm/llvm-project/pull/121822


More information about the cfe-commits mailing list