This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git
The following commit(s) were added to refs/heads/main by this push:
new 520c201c [FIX] Mark ObjectRef throw-only paths unreachable (#656)
520c201c is described below
commit 520c201c258a612d96a2efb0d176e460919ccae1
Author: Tianqi Chen <[email protected]>
AuthorDate: Sun Jul 5 23:57:32 2026 +0800
[FIX] Mark ObjectRef throw-only paths unreachable (#656)
---
include/tvm/ffi/any.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/tvm/ffi/any.h b/include/tvm/ffi/any.h
index 7c680ec1..277b29d5 100644
--- a/include/tvm/ffi/any.h
+++ b/include/tvm/ffi/any.h
@@ -900,6 +900,7 @@ TVM_FFI_INLINE ObjectRefType ObjectRef::as_or_throw()
const& {
<< "` as type `" <<
TypeTraits<ObjectRefType>::TypeStr() << "`";
}
}
+ TVM_FFI_UNREACHABLE();
}
template <typename ObjectRefType, typename>
@@ -930,6 +931,7 @@ TVM_FFI_INLINE ObjectRefType ObjectRef::as_or_throw() && {
<< "` as type `" <<
TypeTraits<ObjectRefType>::TypeStr() << "`";
}
}
+ TVM_FFI_UNREACHABLE();
}
//! \endcond