Skip to content

[FIX] Mark ObjectRef throw-only paths unreachable#656

Merged
tqchen merged 1 commit into
apache:mainfrom
tqchen:fix-msvc-objectref-as-or-throw-warning
Jul 5, 2026
Merged

[FIX] Mark ObjectRef throw-only paths unreachable#656
tqchen merged 1 commit into
apache:mainfrom
tqchen:fix-msvc-objectref-as-or-throw-warning

Conversation

@tqchen

@tqchen tqchen commented Jul 5, 2026

Copy link
Copy Markdown
Member

This helps fix the warning in msvc

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the TVM_FFI_UNREACHABLE() macro to the end of the ObjectRef::as_or_throw() const& and ObjectRef::as_or_throw() && methods in include/tvm/ffi/any.h to explicitly mark unreachable code paths. There are no review comments to address, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@tqchen tqchen merged commit 520c201 into apache:main Jul 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants