Skip to content

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