This is an automated email from the ASF dual-hosted git repository.
junrushao pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/unity by this push:
new 06ae46e567 [Runtime] Fix ICE from Clang (#15635)
06ae46e567 is described below
commit 06ae46e5674d16edbf3259451281f696269acef6
Author: Junru Shao <[email protected]>
AuthorDate: Mon Aug 28 13:40:37 2023 -0700
[Runtime] Fix ICE from Clang (#15635)
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>(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
---
include/tvm/runtime/packed_func.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/tvm/runtime/packed_func.h
b/include/tvm/runtime/packed_func.h
index e63e92835c..7aa8ef1ba7 100644
--- a/include/tvm/runtime/packed_func.h
+++ b/include/tvm/runtime/packed_func.h
@@ -1693,7 +1693,7 @@ inline TVMRetValue PackedFunc::operator()(Args&&... args)
const {
return rv;
}
-template <int i, typename T>
+template <size_t i, typename T>
struct TVMArgsSetterApply {
static TVM_ALWAYS_INLINE void F(TVMArgsSetter* setter, T&& value) {
(*setter)(i, std::forward<T>(value));