[all-commits] [llvm/llvm-project] 392942: [globalopt] Don't emit DWARF fragments for members

David Spickett via All-commits all-commits at lists.llvm.org
Thu Apr 30 03:37:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3929429347d398773577b79f7fdb780d4f7ed887
      https://github.com/llvm/llvm-project/commit/3929429347d398773577b79f7fdb780d4f7ed887
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2020-04-30 (Thu, 30 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    A llvm/test/DebugInfo/Generic/global-sra-struct-zero-length.ll

  Log Message:
  -----------
  [globalopt] Don't emit DWARF fragments for members
of a struct that cover the whole struct

This can happen when the rest of the
members of are zero length. Following
the same pattern applied to the SROA
pass in:
d7f6f1636d53c3e2faf55cdf20fbb44a1a149df1

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45335

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




More information about the All-commits mailing list