[PATCH] D11394: Fix warnings about pessimizing return moves for C++11 and higher
Marshall Clow
mclow.lists at gmail.com
Wed Jul 22 08:42:02 PDT 2015
mclow.lists added inline comments.
================
Comment at: include/__config:724
@@ -719,1 +723,3 @@
+#endif
+
#ifndef _LIBCPP_HAS_NO_ASAN
----------------
I think that this needs more exploration; someone needs to look at the codegen.
return x;
is different from:
return (x); // this is an expression
I suspect that only one will trigger RVO.
http://reviews.llvm.org/D11394
More information about the cfe-commits
mailing list