[all-commits] [llvm/llvm-project] c62284: [clang] Followup for constexpr-unknown potential c...

Eli Friedman via All-commits all-commits at lists.llvm.org
Tue Sep 2 12:20:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c62284c43d519317979e3028f7c37f42eed6ac8e
      https://github.com/llvm/llvm-project/commit/c62284c43d519317979e3028f7c37f42eed6ac8e
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Pointer.cpp
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/constant-expression-p2280r4.cpp

  Log Message:
  -----------
  [clang] Followup for constexpr-unknown potential constant expressions. (#151053)

6a60f18997d62b0e2842a921fcb6beb3e52ed823 fixed the primary issue of
dereferences, but there are some expressions that depend on the identity
of the pointed-to object without actually accessing it. Handle those
cases.

Also, while I'm here, fix a crash in interpreter mode comparing typeid
to nullptr.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list