Skip to content

PR for llvm/llvm-project#57377 #148

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

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Sep 8, 2022

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/llvm-project#54419.

Fixes #57377

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D132723
@llvmbot
Copy link
Member Author

llvmbot commented Sep 8, 2022

@AaronBallman What do you think about merging this PR to the release branch?

Copy link
Contributor

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tru tru merged commit 3a08ad2 into release/15.x Sep 12, 2022
@tru tru deleted the cor3ntin-fix_ice_in_constexpr_coverage_backport branch September 12, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE when code contains if consteval and coverage report is enabled
4 participants