Skip to content

Use .str() when converting StringRef to std::string in ModuleInterfaceLoader #33180

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
Jul 30, 2020

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jul 29, 2020

This implicit conversion is no longer correct and just happens to work when linking against the version of LLVM currently used in CI. The implicit conversion operator for std::string has been removed upstream so this change is meant to unblock being able to build against more-recent LLVM versions.

@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

@swift-ci please test

@artemcm artemcm requested a review from nkcsgexi July 29, 2020 15:58
@compnerd
Copy link
Member

compnerd commented Jul 29, 2020

This change is valid (and should be done), but a bit more context would be great. How did you find this? There was/is an implicit conversion operator for std::string that will be removed once the rebranching for trunk is done (its been removed upstream).

@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

This change is valid (and should be done), but a bit more context would be great. How did you find this? There was/is an implicit conversion operator for std::string that will be removed once the rebranching for trunk is done (its been removed upstream).

An issue was found when building Swift trunk against a newer version of LLVM, where, as you say, this behaviour is no longer supported. So this change is meant to unblock that. I will update the PR description with additional context.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - fd96bbd

@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

@swift-ci please test OS X platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - fd96bbd

@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

Looks to be an environment filesystem access failure.
@swift-ci please test OS X platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - fd96bbd

@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

@swift-ci please test OS X platform

1 similar comment
@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

@swift-ci please test OS X platform

@artemcm artemcm merged commit ea81e26 into swiftlang:master Jul 30, 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.

4 participants