[all-commits] [llvm/llvm-project] bcf660: [DebugInfo] Fix for adding "returns cxx udt" optio...

Amy Huang via All-commits all-commits at lists.llvm.org
Tue Apr 7 09:10:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bcf66084eddd4d3dbe78fc4ed39a347d5d8d57d4
      https://github.com/llvm/llvm-project/commit/bcf66084eddd4d3dbe78fc4ed39a347d5d8d57d4
  Author: Amy Huang <akhuang at google.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/CodeGenCXX/debug-info-composite-triviality-fwd-decl.cpp

  Log Message:
  -----------
  [DebugInfo] Fix for adding "returns cxx udt" option to functions in CodeView.

Summary:
This change adds DIFlagNonTrivial to forward declarations of
DICompositeType. It adds the flag to nontrivial types and types with
unknown triviality.

It fixes adding the "CxxReturnUdt" flag to functions inconsistently,
since it is added based on whether the return type is marked NonTrivial, and
that changes if the return type was a forward declaration.

continues the discussion at https://reviews.llvm.org/D75215

Bug: https://bugs.llvm.org/show_bug.cgi?id=44785

Reviewers: rnk, dblaikie, aprantl

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list