[Bug] Off-by-one error in the type index range check within Object::IsInstance() #17901
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
Expected behavior
The expected output of the following test code should be:
The
child1node
andchild2node
both inherits fromParentNode
, so they should both be instances ofParentNode
.Test code (
main.cpp
):Actual behavior
Environment
Any environment details, such as: Operating System, TVM version, etc
Operating System: Linux
TVM version: main branch (commit 2ca6ec8, Mon Apr 21 15:17:16 2025)
Steps to reproduce
main.cpp
.Triage
The text was updated successfully, but these errors were encountered: