================
@@ -1182,6 +1182,10 @@ void CodeGenModule::Release() {
   });
   EmitCtorList(GlobalCtors, "llvm.global_ctors");
   EmitCtorList(GlobalDtors, "llvm.global_dtors");
+  // The SYCL image registration functions are added to the constructor and
+  // destructor lists which merge into llvm.global_ctors and llvm.global_dtors.
+  if (LangOpts.SYCLIsHost && !CodeGenOpts.OffloadBinaryToEmbedFile.empty())
+    embedSYCLTargetBinary();
----------------
YuriPlyakhin wrote:

0e88bd2e84c1477dec1fb967076cfd0e2b18a63a

https://github.com/llvm/llvm-project/pull/216419
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to