RValue refs do not work that way.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 13 Feb 2016 16:00:13 +0000 (16:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 13 Feb 2016 16:00:13 +0000 (16:00 +0000)
llvm-svn: 260823

clang/lib/CodeGen/CGCall.cpp

index 0ba0642..61b2fe7 100644 (file)
@@ -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;
   }