Skip to content

Add SIL and IRGen support for a ConstantStringLiteral instruction #8692

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

Conversation

aschwaighofer
Copy link
Contributor

This supports a utf8 or utf16 encoding.

Because we don't support reference count inert instructions in the runtime (yet?) such strings don't go into the read-only section. Instead we initialize the string's strong reference count to two.

rdar://30545013

This supports a utf8 or utf16 encoding.

rdar://30545013
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please smoke test

@aschwaighofer aschwaighofer merged commit 83b4c05 into swiftlang:master Apr 11, 2017
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