[all-commits] [llvm/llvm-project] fd37b4: [Clang][CodeGen] Fix this argument type for certai...

jacobly0 via All-commits all-commits at lists.llvm.org
Thu Mar 2 23:17:54 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: fd37b4b38d77a0b788695d839ee2b8c07732fb5d
      https://github.com/llvm/llvm-project/commit/fd37b4b38d77a0b788695d839ee2b8c07732fb5d
  Author: Jacob Young <jacobly0 at users.noreply.github.com>
  Date:   2023-03-02 (Thu, 02 Mar 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CGCXXABI.h
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGExprCXX.cpp
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    M clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
    M clang/test/CodeGenCXX/cxx2a-destroying-delete.cpp
    M clang/test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp
    M clang/test/CodeGenCXX/microsoft-abi-structors.cpp
    M clang/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp

  Log Message:
  -----------
  [Clang][CodeGen] Fix this argument type for certain destructors

With the Microsoft ABI, some destructors need to offset a parameter to
get the derived this pointer, in which case the type of that parameter
should not be a pointer to the derived type.

Reviewed By: efriedma

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

(cherry picked from commit 67409911353323ca5edf2049ef0df54132fa1ca7)




More information about the All-commits mailing list