[llvm] [libsycl] Generic code cleanup (PR #224330)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 05:27:38 PDT 2026


================
@@ -169,7 +170,7 @@ class _LIBSYCL_EXPORT exception : public virtual std::exception {
   // or context directly.
   std::shared_ptr<std::string> MMessage;
   std::shared_ptr<context> MContext;
-  std::error_code MErrC = make_error_code(sycl::errc::invalid);
----------------
KseniyaTikhomirova wrote:

nothing is wrong, it is just redundant, exception has only one constructor that fill all fields https://github.com/llvm/llvm-project/blob/main/libsycl/src/exception.cpp#L34

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


More information about the llvm-commits mailing list