RValue refs do not work that way.

llvm-svn: 260823
This commit is contained in:
Benjamin Kramer 2016-02-13 16:00:13 +00:00
parent 536ffdf51d
commit 0bb97746a8
1 changed files with 2 additions and 1 deletions

View 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;
}