Fix -Wpessimizing-move warning by remove the call to std::move.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@236265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu 2015-04-30 21:47:28 +00:00
parent 3e879e3d3f
commit 14dbb25449

View File

@ -152,7 +152,7 @@ system_error::__init(const error_code& ec, string what_arg)
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)