[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-commits
Subject: [libcxx] r236265 - Fix -Wpessimizing-move warning by remove the call to std::move.
From: Richard Trieu <rtrieu () google ! com>
Date: 2015-04-30 21:47:28
Message-ID: 20150430214728.AE5A22A6C02C () llvm ! org
[Download RAW message or body]
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)
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic