Skip to content

Conversation

adrian-prantl
Copy link

It turns out that this wasn;t implemented at all and the existing
tests were working by coincidence because RegisterAllVariables() also
injects local copies of global variables, which bypasses the
discriminator matching. After properly implementing discriminator
support a couple of additional bugs got uncovered which should all be
fixed by this commit and the matching Swift compiler update to
serialize the isTopLevelGlobal bit on VarDecls.

rdar://problem/58846302

It turns out that this wasn;t implemented at all and the existing
tests were working by coincidence because RegisterAllVariables() also
injects local copies of global variables, which bypasses the
discriminator matching. After properly implementing discriminator
support a couple of additional bugs got uncovered which should all be
fixed by this commit and the matching Swift compiler update to
serialize the isTopLevelGlobal bit on VarDecls.

<rdar://problem/58846302>
@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

3 similar comments
@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

@xedin xedin merged commit b07f79b into swiftlang:swift/master Jan 31, 2020
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.

2 participants