We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2e40d6 commit f3191c8Copy full SHA for f3191c8
lib/AST/Module.cpp
@@ -3751,6 +3751,10 @@ void SourceFile::setAvailabilityScope(AvailabilityScope *scope) {
3751
3752
ArrayRef<OpaqueTypeDecl *> SourceFile::getOpaqueReturnTypeDecls() {
3753
for (auto *vd : UnvalidatedDeclsWithOpaqueReturnTypes.takeVector()) {
3754
+ if (vd->getDeclContext()->getInnermostSkippedFunctionContext()) {
3755
+ // Ignore things in skipped functions.
3756
+ continue;
3757
+ }
3758
if (auto opaqueDecl = vd->getOpaqueResultTypeDecl()) {
3759
auto inserted = ValidatedOpaqueReturnTypes.insert(
3760
{opaqueDecl->getOpaqueReturnTypeIdentifier().str(),
0 commit comments