Skip to content

[AutoDiff] Fix crasher on property getter in library evolution mode. #34777

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 2 commits into from
Nov 17, 2020

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Nov 17, 2020

SILBuilder::createAllocStack expects a debug variable when the location is a VarDecl. Since we are in pullbacks, there's no debug variables so we pass an empty one.

General support for debug-info-in-pullbacks will be added as part of SR-13535.

Also add a negative test for SR-13866.

Resolves SR-13865.

`SILBuilder::createAllocStack` expects a debug variable when the location is a `VarDecl`. Since we are in pullbacks, there's no debug variables so we pass an empty one.

General support for debug-info-in-pullbacks will be added as part of SR-13535.

Also add negative tests for SR-13866.

Resolves SR-13865.
@rxwei
Copy link
Contributor Author

rxwei commented Nov 17, 2020

@swift-ci please test

@rxwei rxwei requested a review from marcrasi November 17, 2020 08:34
@rxwei
Copy link
Contributor Author

rxwei commented Nov 17, 2020

@swift-ci please test and merge

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9d93b71

@rxwei
Copy link
Contributor Author

rxwei commented Nov 17, 2020

@swift-ci please test macos platform and merge

@rxwei
Copy link
Contributor Author

rxwei commented Nov 17, 2020

@swift-ci please test macos platform

@rxwei rxwei merged commit 35aa99b into swiftlang:main Nov 17, 2020
@rxwei rxwei deleted the sr13865 branch November 17, 2020 22:35
ainu-bot added a commit to google/swift that referenced this pull request Nov 17, 2020
* 'main' of github.com:apple/swift:
  [AutoDiff] Fix crasher on property getter in library evolution mode. (swiftlang#34777)
  [sil] Add a small helper to SILBuilder to get the loc of the builder's current insertion point.
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