File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ void SYCLInstallationDetector::addSYCLIncludeArgs(
3131}
3232
3333// Unsupported options for SYCL device compilation.
34- static std::vector <OptSpecifier> getUnsupportedOpts () {
35- std::vector<OptSpecifier> UnsupportedOpts = {
34+ static ArrayRef <OptSpecifier> getUnsupportedOpts () {
35+ return {
3636 options::OPT_fsanitize_EQ, // -fsanitize
3737 options::OPT_fcf_protection_EQ, // -fcf-protection
3838 options::OPT_fprofile_generate,
@@ -54,7 +54,6 @@ static std::vector<OptSpecifier> getUnsupportedOpts() {
5454 options::OPT_forder_file_instrumentation, // -forder-file-instrumentation
5555 options::OPT_fcs_profile_generate, // -fcs-profile-generate
5656 options::OPT_fcs_profile_generate_EQ};
57- return UnsupportedOpts;
5857}
5958
6059SYCLToolChain::SYCLToolChain (const Driver &D, const llvm::Triple &Triple,
You can’t perform that action at this time.
0 commit comments