[llvm] Use `std::move` to avoid copy (PR #113057)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 19 10:56:31 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f87f3ad6ea8bb80cba9ce009079e1b6c7486feac 45dbc4e57c27ef43f19036b6fa4e429a62c5ad56 --extensions cpp -- llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
index 5d9cf7fa97..9654fbb62a 100644
--- a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
@@ -3175,7 +3175,8 @@ void TreePattern::dump() const { print(errs()); }
CodeGenDAGPatterns::CodeGenDAGPatterns(const RecordKeeper &R,
PatternRewriterFn PatternRewriter)
: Records(R), Target(R), Intrinsics(R),
- LegalVTS(Target.getLegalValueTypes()), PatternRewriter(std::move(PatternRewriter)) {
+ LegalVTS(Target.getLegalValueTypes()),
+ PatternRewriter(std::move(PatternRewriter)) {
ParseNodeInfo();
ParseNodeTransforms();
ParseComplexPatterns();
``````````
</details>
https://github.com/llvm/llvm-project/pull/113057
More information about the llvm-commits
mailing list