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 @@ -2697,7 +2697,7 @@ SourceFile::getConfiguredReferencedNameTracker() const {
2697
2697
}
2698
2698
2699
2699
ArrayRef<OpaqueTypeDecl *> SourceFile::getOpaqueReturnTypeDecls () {
2700
- for (auto *vd : UnvalidatedDeclsWithOpaqueReturnTypes) {
2700
+ for (auto *vd : UnvalidatedDeclsWithOpaqueReturnTypes. takeVector () ) {
2701
2701
if (auto opaqueDecl = vd->getOpaqueResultTypeDecl ()) {
2702
2702
auto inserted = ValidatedOpaqueReturnTypes.insert (
2703
2703
{opaqueDecl->getOpaqueReturnTypeIdentifier ().str (),
@@ -2708,7 +2708,6 @@ ArrayRef<OpaqueTypeDecl *> SourceFile::getOpaqueReturnTypeDecls() {
2708
2708
}
2709
2709
}
2710
2710
2711
- UnvalidatedDeclsWithOpaqueReturnTypes.clear ();
2712
2711
return OpaqueReturnTypes;
2713
2712
}
2714
2713
You can’t perform that action at this time.
0 commit comments