File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2639,7 +2639,7 @@ SourceFile::getConfiguredReferencedNameTracker() const {
2639
2639
}
2640
2640
2641
2641
ArrayRef<OpaqueTypeDecl *> SourceFile::getOpaqueReturnTypeDecls () {
2642
- for (auto *vd : UnvalidatedDeclsWithOpaqueReturnTypes) {
2642
+ for (auto *vd : UnvalidatedDeclsWithOpaqueReturnTypes. takeVector () ) {
2643
2643
if (auto opaqueDecl = vd->getOpaqueResultTypeDecl ()) {
2644
2644
auto inserted = ValidatedOpaqueReturnTypes.insert (
2645
2645
{opaqueDecl->getOpaqueReturnTypeIdentifier ().str (),
@@ -2650,7 +2650,6 @@ ArrayRef<OpaqueTypeDecl *> SourceFile::getOpaqueReturnTypeDecls() {
2650
2650
}
2651
2651
}
2652
2652
2653
- UnvalidatedDeclsWithOpaqueReturnTypes.clear ();
2654
2653
return OpaqueReturnTypes;
2655
2654
}
2656
2655
You can’t perform that action at this time.
0 commit comments