forked from OSchip/llvm-project
[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:
parent
41e66dade1
commit
b6aadc1ca5
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue