[all-commits] [llvm/llvm-project] b03558: [ItaniumMangle] Make sure class types are added to...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Wed May 28 11:50:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b03558080eda9ebe3955afdd52aed902c5087310
      https://github.com/llvm/llvm-project/commit/b03558080eda9ebe3955afdd52aed902c5087310
  Author: Akira Hatanaka <ahatanak at gmail.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/test/CodeGenCXX/clang-abi-compat.cpp
    M clang/test/CodeGenCXX/mangle-itanium-ptrauth.cpp

  Log Message:
  -----------
  [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (#138947)

`mangleCXXRecordDecl` should add class types to the substitution
dictionary unless it is called by `mangleCXXCtorVTable` (see
https://github.com/llvm/llvm-project/pull/109970 for why that is
needed).

This fixes a mis-compile caused by
https://github.com/llvm/llvm-project/pull/132401, which started calling
`mangleCXXRecordDecl` in `CXXNameMangler::mangleType(const
MemberPointerType *T)`.

rdar://149307496



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