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

David Spickett via All-commits all-commits at lists.llvm.org
Mon May 18 19:06:14 PDT 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: d9160ff3e92683be70a80b60f4139836316bd63e
      https://github.com/llvm/llvm-project/commit/d9160ff3e92683be70a80b60f4139836316bd63e
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2020-05-18 (Mon, 18 May 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

(cherry picked from commit 3929429347d398773577b79f7fdb780d4f7ed887)




More information about the All-commits mailing list