Skip to content

Commit 56bfd72

Browse files
authored
[FFI] Fix dynamic FFI index to ensure compatibility (#17727)
This PR sets the dynamic index to the original value in past versions so we can have stable compatibility when we phase out static objects.
1 parent be8e438 commit 56bfd72

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

include/tvm/runtime/object.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,12 @@ struct TypeIndex {
7777
/*! \brief runtime::RPCObjectRef */
7878
kRuntimeRPCObjectRef = 9,
7979
// static assignments that may subject to change.
80-
kStaticIndexEnd,
81-
/*! \brief Type index is allocated during runtime. */
82-
kDynamic = kStaticIndexEnd
80+
kStaticIndexEnd = 10,
81+
/*!
82+
* \brief Type index is allocated during runtime, keeping it as
83+
* constant for now to ensure compatibility across versions
84+
*/
85+
kDynamic = 12
8386
};
8487
}; // namespace TypeIndex
8588

0 commit comments

Comments
 (0)