[all-commits] [llvm/llvm-project] aaf1a9: [DebugInfo] Add size to class declarations in debu...

Amy Huang via All-commits all-commits at lists.llvm.org
Thu Sep 3 15:43:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: aaf1a96408b1587b5fb80a3a7c424348cb09e577
      https://github.com/llvm/llvm-project/commit/aaf1a96408b1587b5fb80a3a7c424348cb09e577
  Author: Amy Huang <akhuang at google.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

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

  Log Message:
  -----------
  [DebugInfo] Add size to class declarations in debug info.

This adds the size to forward declared class DITypes, if the size is known.

Fixes an issue where we determine whether to emit fragments based on the
type size, so fragments would sometimes be incorrectly emitted if there
was no size.

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

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




More information about the All-commits mailing list