Skip to content

Commit

Permalink
Update use of throw
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
  • Loading branch information
mmichel11 committed Jan 10, 2025
1 parent 1a5deb4 commit e1f9a38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -855,10 +855,10 @@ struct __bypass_sycl_kernel_not_supported
// compiler, then compare the value of the error code. Otherwise, assume the implementation is spec compliant.
#ifdef _ONEDPL_LIBSYCL_VERSION // Detects either icpx or the open-source intel/llvm compiler
if (__e.code().value() != 7)
throw __e;
throw;
#else // Generic SYCL compiler. Assume it is spec compliant.
if (__e.code() != sycl::errc::kernel_not_supported)
throw __e;
throw;
#endif
}
};
Expand Down

0 comments on commit e1f9a38

Please sign in to comment.