This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix incorrect constant folding of `if consteval`
ClosedPublic

Authored by cor3ntin on Jul 23 2022, 11:57 PM.

Details

Summary

Fixes https://github.com/llvm/llvm-project/issues/55638.

if consteval was evaluated incorrectly when in a
non-constant context that could be constant-folded.

Diff Detail

Event Timeline

cor3ntin created this revision.Jul 23 2022, 11:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2022, 11:58 PM
cor3ntin requested review of this revision.Jul 23 2022, 11:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2022, 11:58 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Jul 24 2022, 6:58 AM
This revision was landed with ongoing or failed builds.Jul 24 2022, 7:18 AM
This revision was automatically updated to reflect the committed changes.