[clang] [SYCL] change sycl version accrodnig to standard (PR #114790)

Greg Lueck via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 06:15:45 PST 2024


================
@@ -587,7 +587,7 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
     if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2017)
       Builder.defineMacro("CL_SYCL_LANGUAGE_VERSION", "121");
     else if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2020)
-      Builder.defineMacro("SYCL_LANGUAGE_VERSION", "202001");
+      Builder.defineMacro("SYCL_LANGUAGE_VERSION", "202012");
----------------
gmlueck wrote:

Thanks.  Seems like this is resolved now.

https://github.com/llvm/llvm-project/pull/114790


More information about the cfe-commits mailing list