Skip to content

Conversation

swiftix
Copy link
Contributor

@swiftix swiftix commented Apr 29, 2016

What's in this pull request?

Fix a couple of bugs in the devirtualizer.

rdar://25891588, rdar://25994886 and SR-1206

Resolved bug number: (SR-1206)


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
OS X platform @swift-ci Please test OS X platform
Linux platform @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

  • Don't crash if a class_method instruction could not be devirtualized.
  • Improve devirtualization of methods with generic parameters and using dependent types.
  • Fix a bug in isBindableToSuperclassOf, uncovered while fixing the original bug reported in SR-1206.
    This bug could lead in certain cases to invocations of a wrong method from the base class, instead
    of using a method from a derived class.

rdar://25891588 and SR-1206

- Don't crash if a class_method instruction could not be devirtualized.
- Improve devirtualization of methods with generic parameters and using dependent types.
- Fix a bug in isBindableToSuperclassOf, uncovered while fixing the original bug reported in SR-1206.
  This bug could lead in certain cases to invocations of a wrong method from the base class, instead
  of using a method from a derived class.

rdar://25891588   and SR-1206
@swiftix
Copy link
Contributor Author

swiftix commented Apr 29, 2016

@swift-ci Please test and merge

@swiftix
Copy link
Contributor Author

swiftix commented Apr 29, 2016

@jckarter Thanks for the quick fix for a problem in Type.cpp! 👍

@swiftix swiftix merged commit 3fe1659 into swiftlang:master Apr 29, 2016
MaxDesiatov pushed a commit that referenced this pull request Apr 19, 2021
[pull] swiftwasm from main
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.

1 participant