Skip to content

IRGen: fix a problem convert_function in a payload of a statically initialized enum #67983

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
Aug 17, 2023

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Aug 17, 2023

This was a stupid oversight. The flatten flag needs to be passed through convert_function in irgen::emitConstantValue.

Fixes a compiler crash.

rdar://113942221

…nitialized enum

This was a stupid oversight. The `flatten` flag needs to be passed through `convert_enum` in `irgen::emitConstantValue`.

Fixes a compiler crash.

rdar://113942221
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test windows

@eeckstein eeckstein changed the title IRGen: fix a problem conver_function in a payload of a statically initialized enum IRGen: fix a problem convert_function in a payload of a statically initialized enum Aug 17, 2023
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test windows

@eeckstein eeckstein merged commit 48695c6 into swiftlang:main Aug 17, 2023
@eeckstein eeckstein deleted the fix-function-mp-enums branch August 17, 2023 21:10
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