Skip to content

Commit 036ef0a

Browse files
Implement review comment for coding standard
Signed-off-by: Elizabeth Andrews <[email protected]>
1 parent 50f56d6 commit 036ef0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/Version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ getSYCLVersionMacros(const LangOptions &LangOpts) {
128128
if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2017)
129129
return {{"CL_SYCL_LANGUAGE_VERSION", "121"},
130130
{"SYCL_LANGUAGE_VERSION", "201707"}};
131-
else if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2020)
131+
if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2020)
132132
return {{"SYCL_LANGUAGE_VERSION", "202001"}};
133133
llvm_unreachable("SYCL standard should be set");
134134
}

0 commit comments

Comments
 (0)