[all-commits] [llvm/llvm-project] 5ef904: [clang][ExprConst] Don't try to evaluate value-dep...

Timm Baeder via All-commits all-commits at lists.llvm.org
Wed Oct 4 23:42:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ef904b5da96562d3209c8f98e1175e623c37bc1
      https://github.com/llvm/llvm-project/commit/5ef904b5da96562d3209c8f98e1175e623c37bc1
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2023-10-05 (Thu, 05 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/constant-expression-cxx1z.cpp

  Log Message:
  -----------
  [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (#67778)

The Expression here migth be value dependent, which makes us run into an
assertion later on. Just bail out early.

Fixes #67690




More information about the All-commits mailing list