Skip to content

Commit 8fb3eba

Browse files
committed
Use ArrayRef
1 parent 2279e33 commit 8fb3eba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

6059
SYCLToolChain::SYCLToolChain(const Driver &D, const llvm::Triple &Triple,

0 commit comments

Comments
 (0)