[all-commits] [llvm/llvm-project] 4e719e: DebugInfo: Prefer vtable homing over ctor homing.

David Blaikie via All-commits all-commits at lists.llvm.org
Wed Jul 27 17:11:00 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e719e0f16933a8945a4e85db39fdad5afbede36
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/CodeGenCXX/debug-info-limited-ctor.cpp

  Log Message:
  DebugInfo: Prefer vtable homing over ctor homing.

Vtables will be emitted in fewer places than ctors (every ctor
references the vtable, so at worst it's the same places - but at best
the type has a non-inline key function and the vtable is emitted in one

Pulling this fix out of 517bbc64dbe493644eff8d55fd9566435e930520 which
was reverted in 4821508d4db75a535d02b8938f81fac6de66cc26

More information about the All-commits mailing list