[all-commits] [llvm/llvm-project] 2a23de: [Clang] Switch from TransformExpr to TransformInit...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu May 25 09:51:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a23de01e51545d01055229baea4d4a296b65058
      https://github.com/llvm/llvm-project/commit/2a23de01e51545d01055229baea4d4a296b65058
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M clang/lib/Sema/TreeTransform.h
    M clang/test/Analysis/missing-bind-temporary.cpp
    A clang/test/CodeGenCXX/gh62818.cpp

  Log Message:
  -----------
  [Clang] Switch from TransformExpr to TransformInitializer in places we need to revert initializer to it syntactic form for Sema

In some cases we are using TransformExpr instead of
TransformInitializer, this results in ExprWithCleanups being dropped and
we are not emitting a destructor as a result.

This fixes: https://github.com/llvm/llvm-project/issues/62818

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




More information about the All-commits mailing list