[libcxx] r236265 - Fix -Wpessimizing-move warning by remove the call to std::move.
Richard Trieu
rtrieu at google.com
Thu Apr 30 14:47:28 PDT 2015
Author: rtrieu
Date: Thu Apr 30 16:47:28 2015
New Revision: 236265
URL: http://llvm.org/viewvc/llvm-project?rev=236265&view=rev
Log:
Fix -Wpessimizing-move warning by remove the call to std::move.
Modified:
libcxx/trunk/src/system_error.cpp
Modified: libcxx/trunk/src/system_error.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/system_error.cpp?rev=236265&r1=236264&r2=236265&view=diff
==============================================================================
--- libcxx/trunk/src/system_error.cpp (original)
+++ libcxx/trunk/src/system_error.cpp Thu Apr 30 16:47:28 2015
@@ -152,7 +152,7 @@ system_error::__init(const error_code& e
what_arg += ": ";
what_arg += ec.message();
}
- return _VSTD::move(what_arg);
+ return what_arg;
}
system_error::system_error(error_code ec, const string& what_arg)
More information about the cfe-commits
mailing list