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

mbrookhart 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 f6256df  Fix compile error when AddRewrite gets additional args 
(#10669)
f6256df is described below

commit f6256df2d63bb22017daff8423c3cc998729e52e
Author: khj809 <onsealeat...@gmail.com>
AuthorDate: Wed Mar 30 01:08:15 2022 +0900

    Fix compile error when AddRewrite gets additional args (#10669)
---
 src/relay/transforms/simplify_expr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/relay/transforms/simplify_expr.h 
b/src/relay/transforms/simplify_expr.h
index 1dc919b..cbaa326 100644
--- a/src/relay/transforms/simplify_expr.h
+++ b/src/relay/transforms/simplify_expr.h
@@ -69,7 +69,7 @@ class DFPatternRewriteComposer {
  public:
   template <typename T, typename... Args>
   inline void AddRewrite(Args... args) {
-    rewrites_.push_back(std::make_shared<T, Args...>(&args...));
+    rewrites_.push_back(std::make_shared<T, Args&...>(args...));
   }
 
   inline Array<DFPatternCallback> MakeCallbacks() const {

Reply via email to