diff --git a/sycl/source/detail/event_impl.cpp b/sycl/source/detail/event_impl.cpp index 2518637328234..f6e070cff4a87 100644 --- a/sycl/source/detail/event_impl.cpp +++ b/sycl/source/detail/event_impl.cpp @@ -404,7 +404,7 @@ std::string event_impl::get_backend_info() const { return Queue->getDeviceImplPtr() ->get_platform() .get_info(); - } catch () { + } catch (...) { std::rethrow_exception(std::current_exception()); } } @@ -422,7 +422,7 @@ std::string event_impl::get_backend_info() const { if (QueueImplPtr Queue = MQueue.lock()) { try { return Queue->getDeviceImplPtr()->get_info(); - } catch () { + } catch (...) { std::rethrow_exception(std::current_exception()); } }