-
Notifications
You must be signed in to change notification settings - Fork 11k
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
__builtin_assume: Assertion failed: (!areInvalidOperands(C, S1, S2) && "Invalid operands for select"), function init, file llvm/include/llvm/IR/Instructions.h, line 1709. #45902
Comments
|
This is coming from clang (front-end) codegen; backtrace: |
|
Note that in the mean time, the assertion changed to: Assertion failed: (!areInvalidOperands(C, S1, S2) && "Invalid operands for select"), function init, file /home/dim/src/llvm/llvm-project/llvm/include/llvm/IR/Instructions.h, line 1768. Program received signal SIGABRT, Aborted. It changed between clang 11 and 12, with commit 038edf6 ("Don't reject uses of void-returning consteval functions"). |
|
Still reproducible with |
|
Also crashes on current |
|
@llvm/issue-subscribers-clang-codegen |
checked the godbolt link, it is fixed on trunk. |
Extended Description
As reported in https://bugs.freebsd.org/247665, clang 10.0 (and the most recent clang 11) asserts while compiling the emulators/rpcs3 port. This happens during parsing of an expression using __builtin_assume:
The text was updated successfully, but these errors were encountered: