Skip to content

[5.3] IRGen: Fix enumPayload value witness emission for huge types #31935

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

Conversation

aschwaighofer
Copy link
Contributor

LLVM's isel does not like integer types beyond a certain size
(llvm::IntegerType::MAX_INT_BITS).

Explanation: The compiler would crash in the LLVM backend on imported C types
beyond a certain size.

Scope: Causes Swift programs that use types imported from C > 512K to crash the
compiler.

Risk: Low. Only affects code generation of enum witnesses for very large types
(512K).

Testing: Unit test added.

Original PR: #31918

rdar://63189452

LLVM's isel does not like integer types beyond a certain size
(llvm::IntegerType::MAX_INT_BITS).

Explanation: The compiler would crash in the LLVM backend on imported C types
beyond a certain size.

Scope: Causes Swift programs that use types imported from C > 512K to crash the
compiler.

Risk: Low. Only affects code generation of enum witnesses for very large types
(512K).

Testing: Unit test added.

rdar://63189452
@aschwaighofer aschwaighofer requested a review from a team as a code owner May 21, 2020 15:27
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@tkremenek tkremenek merged commit 508b217 into swiftlang:release/5.3 May 21, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants