Skip to content

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