[clang-tools-extra] [clang-include-cleaner] Fix -Wpessimizing-move warning introduced in 4cda28c1ada702a08f6960eb4c93919187c1d4d1 (PR #112684)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 02:33:55 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: Byoungchan Lee (bc-lee)
<details>
<summary>Changes</summary>
Failing log: https://lab.llvm.org/buildbot/#/builders/145/builds/2540
---
Full diff: https://github.com/llvm/llvm-project/pull/112684.diff
1 Files Affected:
- (modified) clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp (+1-1)
``````````diff
diff --git a/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp b/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
index 6bd9c40c70753c..f85dbc0e0c31f2 100644
--- a/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
+++ b/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
@@ -299,7 +299,7 @@ mapInputsToAbsPaths(clang::tooling::CompilationDatabase &CDB,
if (auto Err = VFS->makeAbsolute(AbsPath)) {
llvm::errs() << "Failed to get absolute path for " << Source << " : "
<< Err.message() << '\n';
- return std::move(llvm::errorCodeToError(Err));
+ return llvm::errorCodeToError(Err);
}
std::vector<clang::tooling::CompileCommand> Cmds =
CDB.getCompileCommands(AbsPath);
``````````
</details>
https://github.com/llvm/llvm-project/pull/112684
More information about the cfe-commits
mailing list