Skip to content

[ConstraintSystem] Temporary revert 84a3db45db96 as a workaround for rdar://problem/62842651 #31569

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
May 6, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 5, 2020

Revert 84a3db45db96 and add a test to make sure we generate correct SIL for rdar://problem/62842651

Resolves: rdar://problem/62842651

@xedin
Copy link
Contributor Author

xedin commented May 5, 2020

@swift-ci please test

@@ -0,0 +1,12 @@
// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this test be in test/SILGen then? (And it can use -emit-silgen instead of -emit-sil, which also runs mandatory passes)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a problem where type-checker infers types incorrectly I just could think of an easier and more robust way to verify it in test-case then check emitted SIL.

Copy link
Contributor Author

@xedin xedin May 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to match against constraint system output because that would just become a constant pain to maintain if anything changes with locators and/or type variables.

@swift-ci
Copy link
Contributor

swift-ci commented May 5, 2020

Build failed
Swift Test Linux Platform
Git Sha - 29ae605

@xedin
Copy link
Contributor Author

xedin commented May 5, 2020

@swift-ci please test Linux platform

@xedin xedin merged commit 35159da into master May 6, 2020
@xedin xedin deleted the rdar-62842651-workaround branch May 6, 2020 00:25
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