Skip to content

IRGen: Fix enumPayload value witness emission for huge types #31918

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

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

rdar://63189452

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

rdar://63189452
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7789e2c

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7789e2c

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 7789e2c

// llvm::IntegerTypes.
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/huge_c_type.h %s -c

// REQUIRES: OS=macosx || OS=ios
Copy link
Member

@compnerd compnerd May 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What makes this test iOS/macOS specific? It seems that this test could be run on any target.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the first failure. It wants some module imported for size_t.

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 097e451

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 097e451

@aschwaighofer
Copy link
Contributor Author

@swift-ci please test windows

@jckarter
Copy link
Contributor

Oops, I thought I'd caught all the places we use large integer types in enums. Thanks for tracking this down!

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.

4 participants