[all-commits] [llvm/llvm-project] 3f98cd: [Clang] Always constant-evaluate operands of comp...

cor3ntin via All-commits all-commits at lists.llvm.org
Thu Aug 24 07:11:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f98cdc815bddd2b69e3298fa104c0305503292e
      https://github.com/llvm/llvm-project/commit/3f98cdc815bddd2b69e3298fa104c0305503292e
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/compare-cxx2a.cpp

  Log Message:
  -----------
  [Clang]  Always constant-evaluate operands of comparisons to nullptr

even if we know what the result is going to be.
There may be side effects we ought not to ignore,

Fixes #64923

Reviewed By: ChuanqiXu

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




More information about the All-commits mailing list