Skip to content

Commit b89faf9

Browse files
authored
Update SYCL.cpp
1 parent 5a33536 commit b89faf9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ void SYCLInstallationDetector::addSYCLIncludeArgs(
3030
}
3131

3232
// Unsupported options for SYCL device compilation.
33-
static ArrayRef<OptSpecifier> getUnsupportedOpts() {
34-
static constexpr OptSpecifier UnsupportedOpts[] = {
33+
static ArrayRef<options::ID> getUnsupportedOpts() {
34+
static constexpr options::ID UnsupportedOpts[] = {
3535
options::OPT_fsanitize_EQ, // -fsanitize
3636
options::OPT_fcf_protection_EQ, // -fcf-protection
3737
options::OPT_fprofile_generate,
@@ -52,7 +52,8 @@ static ArrayRef<OptSpecifier> getUnsupportedOpts() {
5252
options::OPT_fprofile_instr_use_EQ, // -fprofile-instr-use
5353
options::OPT_forder_file_instrumentation, // -forder-file-instrumentation
5454
options::OPT_fcs_profile_generate, // -fcs-profile-generate
55-
options::OPT_fcs_profile_generate_EQ};
55+
options::OPT_fcs_profile_generate_EQ,
56+
};
5657
return UnsupportedOpts;
5758
}
5859

0 commit comments

Comments
 (0)