[llvm] [Offload] Implement `olShutDown` (PR #144055)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 03:59:30 PDT 2025
================
@@ -213,18 +216,18 @@ Error olShutDown_impl() {
return Error::success();
llvm::Error Result = Error::success();
+ auto *OldContext = OffloadContextVal.exchange(nullptr);
----------------
jhuber6 wrote:
Yeah, forgot to mention that this needed to be atomic since we're using it outside the mutex as a guard.
https://github.com/llvm/llvm-project/pull/144055
More information about the llvm-commits
mailing list