r260823 - RValue refs do not work that way.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 13 08:00:15 PST 2016
Author: d0k
Date: Sat Feb 13 10:00:13 2016
New Revision: 260823
URL: http://llvm.org/viewvc/llvm-project?rev=260823&view=rev
Log:
RValue refs do not work that way.
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=260823&r1=260822&r2=260823&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Sat Feb 13 10:00:13 2016
@@ -633,7 +633,8 @@ struct RecordExpansion : TypeExpansion {
RecordExpansion(SmallVector<const CXXBaseSpecifier *, 1> &&Bases,
SmallVector<const FieldDecl *, 1> &&Fields)
- : TypeExpansion(TEK_Record), Bases(Bases), Fields(Fields) {}
+ : TypeExpansion(TEK_Record), Bases(std::move(Bases)),
+ Fields(std::move(Fields)) {}
static bool classof(const TypeExpansion *TE) {
return TE->Kind == TEK_Record;
}
More information about the cfe-commits
mailing list