[llvm] [libsycl] Add context to exception's throw. (PR #224668)

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 06:08:32 PDT 2026


================
@@ -64,6 +67,25 @@ void checkAndThrow(ol_result_t Result) {
   }
 }
 
+/// Checks liboffload API call result, attaches the context to the exception.
+///
+/// Used after calling the API without check.
+/// To be called when specific handling is needed and explicitly done by
+/// developer before throwing exception.
----------------
sergey-semenov wrote:

```suggestion
/// Used after calling the API without a check.
/// To be called when specific handling is needed and explicitly done by
/// developer before throwing an exception.
```

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


More information about the llvm-commits mailing list