Skip to content

Commit 34bd9be

Browse files
authored
[Backport][Runtime] Fix ICE from Clang (#15637)
[Runtime] Fix ICE from Clang This PR fixes an error reporting from Clang on the line below: ``` /.../include/tvm/runtime/packed_func.h:1706:3: error: no matching function for call to 'F' detail::parameter_pack::EnumerateWithArg<Args...>::template F<TVMArgsSetterApply>( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
1 parent 3c6f9c9 commit 34bd9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/tvm/runtime/packed_func.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ inline TVMRetValue PackedFunc::operator()(Args&&... args) const {
16931693
return rv;
16941694
}
16951695

1696-
template <int i, typename T>
1696+
template <size_t i, typename T>
16971697
struct TVMArgsSetterApply {
16981698
static TVM_ALWAYS_INLINE void F(TVMArgsSetter* setter, T&& value) {
16991699
(*setter)(i, std::forward<T>(value));

0 commit comments

Comments
 (0)