This is an automated email from the ASF dual-hosted git repository.

syfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 34bd9be0a8 [Backport][Runtime] Fix ICE from Clang (#15637)
34bd9be0a8 is described below

commit 34bd9be0a80c49b2fcbd082542e5aba955a450f7
Author: Junru Shao <[email protected]>
AuthorDate: Tue Aug 29 04:32:42 2023 -0700

    [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>(
      
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
---
 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));

Reply via email to