You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tk...@apache.org on 2022/11/03 16:32:33 UTC
[tvm] branch main updated: [build][tir] fix clang redundant-move warning (#13268)
This is an automated email from the ASF dual-hosted git repository.
tkonolige 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 0d553127e5 [build][tir] fix clang redundant-move warning (#13268)
0d553127e5 is described below
commit 0d553127e51d7533b93e97b1c0e7876c612b6dc9
Author: Christian Convey <cc...@octoml.ai>
AuthorDate: Thu Nov 3 12:32:27 2022 -0400
[build][tir] fix clang redundant-move warning (#13268)
Fix code to address a valid `-Wredundant-move` clang warning.
---
src/tir/transforms/profile_instrumentation.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tir/transforms/profile_instrumentation.cc b/src/tir/transforms/profile_instrumentation.cc
index 68d5b0a204..3a2ef796c6 100644
--- a/src/tir/transforms/profile_instrumentation.cc
+++ b/src/tir/transforms/profile_instrumentation.cc
@@ -243,7 +243,7 @@ PrimFunc AddProfileBuiltins(PrimFunc func, int32_t max_instr_depth, int32_t min_
InstrumentIntrin p(max_instr_depth, min_instr_height, instr_siblings);
p.GetLoopInfo(func_ptr);
func_ptr->body = p(std::move(func_ptr->body));
- return std::move(func);
+ return func;
}
} // namespace lwp