[all-commits] [llvm/llvm-project] c68baa: [clang] Fix incorrect constant folding of `if cons...

cor3ntin via All-commits all-commits at lists.llvm.org
Sun Jul 24 07:18:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c68baa73eb437556cd8abe40902182a6034930ac
      https://github.com/llvm/llvm-project/commit/c68baa73eb437556cd8abe40902182a6034930ac
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2022-07-24 (Sun, 24 Jul 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/CodeGenCXX/cxx2b-consteval-if.cpp

  Log Message:
  -----------
  [clang] Fix incorrect constant folding of `if consteval`

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.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D130437




More information about the All-commits mailing list