-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
ICE when code contains if consteval
and coverage report is enabled
#57377
ICE when code contains if consteval
and coverage report is enabled
#57377
Comments
if consteval
and coverage report is enabledif consteval
and coverage report is enabled
@llvm/issue-subscribers-clang-frontend |
@llvm/issue-subscribers-c-2b |
@llvm/issue-subscribers-clang-codegen |
/cherry-pick 463e30f |
Failed to cherry-pick: 463e30f https://github.com/llvm/llvm-project/actions/runs/2934968042 Please manually backport the fix and push it to your github fork. Once this is done, please add a comment like this:
|
/branch cor3ntin/llvm-project/corentin/fix_ice_in_constexpr_coverage_backport |
@cor3ntin what's the state of this issue? I think your branch command failed because your own branch contains |
If we can get it sooner, great. Otherwise i guess it will have to wait, i won't be able to rename the branch for a while - unless there is a web UI to do that. |
I can try pulling it over to my fork. |
/branch tru/llvm-project/fix_ice_in_constexpr_coverage_backport |
/pull-request llvm/llvm-project-release-prs#132 |
Fix merge problems: /branch tru/llvm-project/fix_ice_in_constexpr_coverage_backport |
After discussion in llvm/llvm-project-release-prs#132 - I will move this fix to 15.0.1. |
Clang crashes when encountering an `if consteval` statement. This is the minimum fix not to crash. The fix is consistent with the current behavior of if constexpr, which does generate coverage data for the discarded branches. This is of course not correct and a better solution is needed for both if constexpr and if consteval. See llvm#54419. Fixes llvm#57377 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D132723
/branch cor3ntin/llvm-project/fix_ice_in_constexpr_coverage_backport |
1 similar comment
/branch cor3ntin/llvm-project/fix_ice_in_constexpr_coverage_backport |
/pull-request llvm/llvm-project-release-prs#148 |
Clang crashes when encountering an `if consteval` statement. This is the minimum fix not to crash. The fix is consistent with the current behavior of if constexpr, which does generate coverage data for the discarded branches. This is of course not correct and a better solution is needed for both if constexpr and if consteval. See #54419. Fixes #57377 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D132723
https://compiler-explorer.com/z/EoTeeTnEn
crashes in 14 and current main
crash:
The text was updated successfully, but these errors were encountered: