[llvm] [Offload] Implement `olShutDown` (PR #144055)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 09:00:43 PDT 2025


================
@@ -197,8 +195,10 @@ Error olInit_impl() {
   std::lock_guard<std::mutex> Lock{OffloadContextValMutex};
 
   std::optional<Error> InitResult;
----------------
jhuber6 wrote:

A `std::optional<Error>` is weird here. The result of `Error::success()` is supposed to be the optional result.

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


More information about the llvm-commits mailing list