File tree Expand file tree Collapse file tree 2 files changed +1
-55
lines changed Expand file tree Collapse file tree 2 files changed +1
-55
lines changed Original file line number Diff line number Diff line change @@ -1740,21 +1740,10 @@ ExpectedType ASTNodeImporter::VisitDeducedTemplateSpecializationType(
1740
1740
}
1741
1741
1742
1742
ExpectedType ASTNodeImporter::VisitTagType (const TagType *T) {
1743
- TagDecl *DeclForType = T->getOriginalDecl ();
1744
- Expected<TagDecl *> ToDeclOrErr = import (DeclForType);
1743
+ Expected<TagDecl *> ToDeclOrErr = import (T->getOriginalDecl ());
1745
1744
if (!ToDeclOrErr)
1746
1745
return ToDeclOrErr.takeError ();
1747
1746
1748
- if (DeclForType->isUsed ()) {
1749
- // If there is a definition of the 'OriginalDecl', it should be imported to
1750
- // have all information for the type in the "To" AST. (In some cases no
1751
- // other reference may exist to the definition decl and it would not be
1752
- // imported otherwise.)
1753
- Expected<TagDecl *> ToDefDeclOrErr = import (DeclForType->getDefinition ());
1754
- if (!ToDefDeclOrErr)
1755
- return ToDefDeclOrErr.takeError ();
1756
- }
1757
-
1758
1747
if (T->isCanonicalUnqualified ())
1759
1748
return Importer.getToContext ().getCanonicalTagType (*ToDeclOrErr);
1760
1749
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments