[clang] [clang] Check validity of SYCL device target (PR #172366)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 06:00:39 PDT 2026


================
@@ -118,6 +118,12 @@ bool CompilerInstance::createTarget() {
   if (!hasTarget())
     return false;
 
+  if (getLangOpts().SYCLIsDevice && !getTarget().isValidSYCLDeviceTarget()) {
----------------
elizabethandrews wrote:

Oh that could work. Let me try it. Thanks!

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


More information about the cfe-commits mailing list