From 0ec13d62829fe29dd20b548b951e20b37f4f5abe Mon Sep 17 00:00:00 2001 From: "Hu, Peisen" Date: Tue, 5 Mar 2024 08:21:31 -0800 Subject: [PATCH] [SYCL] Fix try-catch block Signed-off-by: Hu, Peisen --- sycl/source/detail/event_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } }