diff --git a/folly/ExceptionWrapper-inl.h b/folly/ExceptionWrapper-inl.h index 0e1f6eba863..f73cbfa5c98 100644 --- a/folly/ExceptionWrapper-inl.h +++ b/folly/ExceptionWrapper-inl.h @@ -158,12 +158,12 @@ inline std::exception const* exception_wrapper::get_exception() const noexcept { template inline Ex* exception_wrapper::get_exception() noexcept { - return exception_ptr_get_object(ptr_); + return exception_ptr_get_object_hint(ptr_, tag); } template inline Ex const* exception_wrapper::get_exception() const noexcept { - return exception_ptr_get_object(ptr_); + return exception_ptr_get_object_hint(ptr_, tag); } inline std::exception_ptr exception_wrapper::to_exception_ptr() const noexcept {