[all-commits] [llvm/llvm-project] 550fa4: [clang] Do not discard cleanups while processing i...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Fri Jun 30 01:52:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 550fa4eabd83d133595c7a5a07d54fc029b73733
      https://github.com/llvm/llvm-project/commit/550fa4eabd83d133595c7a5a07d54fc029b73733
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2023-06-30 (Fri, 30 Jun 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/CodeGenCXX/consteval-cleanup.cpp
    A clang/test/SemaCXX/consteval-cleanup.cpp

  Log Message:
  -----------
  [clang] Do not discard cleanups while processing immediate invocation

Since an immediate invocation is a full expression itself - it requires
an additional ExprWithCleanups node, but it can participate to a bigger
full expression which actually requires cleanups to be run after.

Thanks @ilya-biryukov for helping reducing the reproducer and confirming
that the analysis is correct.

Fixes https://github.com/llvm/llvm-project/issues/60709

Reviewed By: ilya-biryukov

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




More information about the All-commits mailing list