[all-commits] [llvm/llvm-project] 381218: [clang-cl]: generate debug info when `novtable` is...

nerix via All-commits all-commits at lists.llvm.org
Tue Jan 28 15:02:55 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 381218950e9c0fc17256e1fe4093fd108acc2ac4
      https://github.com/llvm/llvm-project/commit/381218950e9c0fc17256e1fe4093fd108acc2ac4
  Author: nerix <nero.9 at hotmail.de>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/CodeGenCXX/debug-info-ms-novtable.cpp

  Log Message:
  -----------
  [clang-cl]: generate debug info when `novtable` is specified (#124643)

When no vtable is emitted in the debug info because a record was marked
`__declspec(novtable)`, only a forward declaration of that type will be
emitted. This PR fixes that by not omitting the definition for the
`RecordDecl` in this case.

Fixes #124638.



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