https://github.com/bc-lee created https://github.com/llvm/llvm-project/pull/112684
Failing log: https://lab.llvm.org/buildbot/#/builders/145/builds/2540 >From b6d67fc85457e3c374d7fc0520f593e95e2cbaec Mon Sep 17 00:00:00 2001 From: Byoungchan Lee <byoungchan....@gmx.com> Date: Thu, 17 Oct 2024 18:30:28 +0900 Subject: [PATCH] [clang-include-cleaner] Fix -Wpessimizing-move warning introduced in 4cda28c1ada702a08f6960eb4c93919187c1d4d1 Failing log: https://lab.llvm.org/buildbot/#/builders/145/builds/2540 --- clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits