[all-commits] [llvm/llvm-project] fe2dcd: DebugInfo: Emit "LocalToUnit" flag on local member...

James Y Knight via All-commits all-commits at lists.llvm.org
Mon Feb 22 14:55:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe2dcd89acfd9301a230e38e9030734553baa8dc
      https://github.com/llvm/llvm-project/commit/fe2dcd89acfd9301a230e38e9030734553baa8dc
  Author: James Y Knight <jyknight at google.com>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

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

  Log Message:
  -----------
  DebugInfo: Emit "LocalToUnit" flag on local member function decls.

Previously, the definition was so-marked, but the declaration was
not. This resulted in LLVM's dwarf emission treating the function as
being external, and incorrectly emitting DW_AT_external.

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




More information about the All-commits mailing list