Skip to content

Commit

Permalink
[SYCL] make sycl language version long type
Browse files Browse the repository at this point in the history
  • Loading branch information
dklochkov-emb committed Nov 19, 2024
1 parent f836a33 commit b1241aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Basic/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ std::string getClangFullCPPVersion() {
llvm::SmallVector<std::pair<llvm::StringRef, llvm::StringRef>, 2>
getSYCLVersionMacros(const LangOptions &LangOpts) {
if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2020)
return {{"SYCL_LANGUAGE_VERSION", "202012"}};
return {{"SYCL_LANGUAGE_VERSION", "202012L"}};
llvm_unreachable("SYCL standard should be set");
}
} // end namespace clang

0 comments on commit b1241aa

Please sign in to comment.