[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.
+///
+/// \param Context context the failed API call was made for.
+/// \param Result liboffload result of calling API.
----------------
sergey-semenov wrote:

```suggestion
/// \param Context the context the failed API call was made for.
/// \param Result the liboffload result of calling API.
```

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


More information about the llvm-commits mailing list