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

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 06:37:03 PST 2025


================
@@ -31,8 +30,8 @@ void SYCLInstallationDetector::addSYCLIncludeArgs(
 }
 
 // Unsupported options for SYCL device compilation.
-static ArrayRef<OptSpecifier> getUnsupportedOpts() {
-  return {
+static ArrayRef<options::ID> getUnsupportedOpts() {
----------------
shiltian wrote:

maybe it's a good idea to redesign this function as returning an `ArrayRef` doesn't give too much.

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


More information about the cfe-commits mailing list