-
Notifications
You must be signed in to change notification settings - Fork 10.5k
IRGen: Mark some llvm::APInt
constructions as signed
#83854
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
Fixes an assertion failure in the rebranch `llvm::APInt` ctor on 32-bit Windows. We were hitting the assertion because `uint64_t(-2)` does not fit into 32 bits when treated as unsigned. These assertions were enabled by default llvm/llvm-project#114539.
@swift-ci please smoke test |
@swift-ci please test Windows |
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.
LGTM
I can confirm this fixes the issue in my local build. |
@swift-ci please test Windows |
1 similar comment
@swift-ci please test Windows |
@swift-ci please test Windows |
(was on the lldb timeout issue) |
@swift-ci please test Windows platform |
@swift-ci please test Windows |
Fixes an assertion failure in the rebranch
llvm::APInt
ctor on 32-bit Windows. We were hitting the assertion becauseuint64_t(-2)
does not fit into 32 bits when treated as unsigned.These assertions were enabled by default llvm/llvm-project#114539.
Resolves #83849.