================ @@ -32,7 +31,7 @@ void SYCLInstallationDetector::addSYCLIncludeArgs( // Unsupported options for SYCL device compilation. static ArrayRef<OptSpecifier> getUnsupportedOpts() { - return { + static std::vector<OptSpecifier> UnsupportedOpts = { ---------------- ilovepi wrote:
Hmm, I was thinking that you'd end up w/ a ref to the constant in RO data, but maybe that's naive of me. Probably @vitalybuka's suggestion is more appropriate, then. 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