[llvm] 418d1ea - PM: silence `-Wpessimizing-move` from GCC 9.2.1 (NFC)
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 27 15:37:16 PDT 2019
Author: Saleem Abdulrasool
Date: 2019-10-27T18:33:09-04:00
New Revision: 418d1ea555cd18bef83b35c9ee9bbc18a3da9abe
URL: https://github.com/llvm/llvm-project/commit/418d1ea555cd18bef83b35c9ee9bbc18a3da9abe
DIFF: https://github.com/llvm/llvm-project/commit/418d1ea555cd18bef83b35c9ee9bbc18a3da9abe.diff
LOG: PM: silence `-Wpessimizing-move` from GCC 9.2.1 (NFC)
Remove the explicit move enabling NVRO.
Added:
Modified:
llvm/lib/Passes/PassBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 1aaccb510f8c..5c4874de855c 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -1445,7 +1445,7 @@ auto parsePassParameters(ParametersParseCallableT &&Parser, StringRef Name,
Expected<ParametersT> Result = Parser(Params);
assert((Result || Result.template errorIsA<StringError>()) &&
"Pass parameter parser can only return StringErrors.");
- return std::move(Result);
+ return Result;
}
/// Parser of parameters for LoopUnroll pass.
More information about the llvm-commits
mailing list