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.
| Paths 
 |  Differential  D130437  
[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 
Diff Detail 
 Event TimelineThis 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 Closed by commit rGc68baa73eb43: [clang] Fix incorrect constant folding of `if consteval` (authored by cor3ntin).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 447134 clang/docs/ReleaseNotes.rst
 clang/lib/AST/ExprConstant.cpp
 
 clang/test/CodeGenCXX/cxx2b-consteval-if.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||