[ASTReader] Use real move semantics instead of emulating them in the copy ctor.

No functionality change intended.

llvm-svn: 277923
This commit is contained in:
Benjamin Kramer 2016-08-06 12:45:16 +00:00
parent 41e66dade1
commit b6aadc1ca5
1 changed files with 3 additions and 3 deletions

View File

@ -170,12 +170,12 @@ namespace clang {
ASTReader &Reader;
NamedDecl *New;
NamedDecl *Existing;
mutable bool AddResult;
bool AddResult;
unsigned AnonymousDeclNumber;
IdentifierInfo *TypedefNameForLinkage;
void operator=(FindExistingResult&) = delete;
void operator=(FindExistingResult &&) = delete;
public:
FindExistingResult(ASTReader &Reader)
@ -189,7 +189,7 @@ namespace clang {
AnonymousDeclNumber(AnonymousDeclNumber),
TypedefNameForLinkage(TypedefNameForLinkage) {}
FindExistingResult(const FindExistingResult &Other)
FindExistingResult(FindExistingResult &&Other)
: Reader(Other.Reader), New(Other.New), Existing(Other.Existing),
AddResult(Other.AddResult),
AnonymousDeclNumber(Other.AnonymousDeclNumber),