-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[coverage] crash with ExprWithCleanups in if constexpr
#80285
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
Comments
if constexpr
if constexpr
@llvm/issue-subscribers-clang-codegen Author: Hana Dusíková (hanickadot)
Clang `main` and `18` crashes with this code: (`-fprofile-instr-generate -fcoverage-mapping -std=c++17`)
struct false_value {
constexpr operator bool() {
return false;
}
};
void foo()
{
if constexpr (false_value{}) { };
} https://godbolt.org/z/833ej19rP It's a bug in my recent change #78033 ... writing patch now, this is so it's visible. |
/cherry-pick bfc6eaa |
…thCleanups` (llvm#80292) Fixes llvm#80285 (cherry picked from commit bfc6eaa)
/pull-request #80356 |
Hey folks, this was completely unintentional that GitHub closed this issue. I maintain a private fork for stuff that I do not feel ready for prime time yet and I had pushed to that fork. How can I prevent this stuff from happening in the future? Does anyone know? And, apologies again! |
…thCleanups` (llvm#80292) Fixes llvm#80285
…thCleanups` (llvm#80292) Fixes llvm#80285 (cherry picked from commit bfc6eaa)
…thCleanups` (llvm#80292) Fixes llvm#80285 (cherry picked from commit bfc6eaa)
…thCleanups` (llvm#80292) Fixes llvm#80285 (cherry picked from commit bfc6eaa)
…thCleanups` (llvm#80292) Fixes llvm#80285 (cherry picked from commit bfc6eaa)
Clang
main
and18
crashes with this code: (-fprofile-instr-generate -fcoverage-mapping -std=c++17
)https://godbolt.org/z/833ej19rP
It's a bug in my recent change #78033 ... writing patch now, this is so it's visible.
The text was updated successfully, but these errors were encountered: