Skip to content

[AST] Teach computeNominalType about nested ObjC protocols #59756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 28, 2022

Objective-C protocols unlike their Swift counterparts could be
nested in other types, so computeNominalType has to fetch a
parent for such protocols (if any) just like importer does.

Resolves: rdar://95084142

Objective-C protocols unlike their Swift counterparts could be
nested in other types, so `computeNominalType` has to fetch a
parent for such protocols (if any) just like importer does.

Resolves: rdar://95084142
@xedin xedin requested a review from hborla June 28, 2022 19:06
@xedin
Copy link
Contributor Author

xedin commented Jun 28, 2022

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 28, 2022

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 28, 2022

I'm reverting back to using the check since removing it re-introduced regressions:

  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/00308-llvm-raw-ostream-write.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/00342-getselftypeforcontainer.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/00860-getselftypeforcontainer.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/00933-no-stacktrace.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/00994-swift-typealiasdecl.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/01273-getselftypeforcontainer.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/01310-getselftypeforcontainer.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/25527-swift-modulefile-getimportedmodules.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/26253-swift-typechecker-validatedecl.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/26520-swift-typechecker-checkgenericarguments.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/26832-swift-typechecker-conformstoprotocol.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/26864-std-function-func-swift-type-subst.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/27247-swift-constraints-constraintsystem-simplifyconstraint.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/27475-swift-typebase-getcanonicaltype.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/27984-llvm-densemapbase-llvm-densemap-swift-declname.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/28013-std-function-func-swift-archetypebuilder-visitinherited.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/28813-swift-genericsignature-enumeratepairedrequirements-llvm-function-ref-bool-swift-.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/28822-formprotocolrelativetype-swift-protocoldecl-swift-genericsignaturebuilder-potent.swift
  Swift-validation(linux-x86_64) :: compiler_crashers_fixed/28824-hasval.swift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants