From 14dbb25449950502fd4d2573e99c339aad1462a0 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Thu, 30 Apr 2015 21:47:28 +0000 Subject: [PATCH] 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 --- src/system_error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system_error.cpp b/src/system_error.cpp index c032fc07b..18f668f07 100644 --- a/src/system_error.cpp +++ b/src/system_error.cpp @@ -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)