-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
IRGen: Fix enumPayload value witness emission for huge types #31918
Conversation
LLVM's isel does not like integer types beyond a certain size (llvm::IntegerType::MAX_INT_BITS). rdar://63189452
@swift-ci Please test |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
test/IRGen/huge_c_type.swift
Outdated
// llvm::IntegerTypes. | ||
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/huge_c_type.h %s -c | ||
|
||
// REQUIRES: OS=macosx || OS=ios |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci please test windows |
Oops, I thought I'd caught all the places we use large integer types in enums. Thanks for tracking this down! |
LLVM's isel does not like integer types beyond a certain size
(llvm::IntegerType::MAX_INT_BITS).
rdar://63189452