[llvm] [libsycl] Fix for static vars deinit order (libsycl vs liboffload) (PR #181366)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 13 09:39:17 PST 2026
================
@@ -65,7 +67,7 @@ extern "C" _LIBSYCL_EXPORT BOOL WINAPI DllMain(HINSTANCE hinstDLL,
// by the compiler and C and C++ standard libraries. SYCL applications may use
// priorities in the range 101-109 to schedule destructors to run after libsycl
// finalization.
-__attribute__((destructor(110))) static void syclUnload() { shutdown(); }
+__attribute__((destructor(110))) static void syclUnload() {}
----------------
sarnex wrote:
can we delete this function since it seems to not be doing anything or is it needed for something?
https://github.com/llvm/llvm-project/pull/181366
More information about the llvm-commits
mailing list