[PATCH] D78720: [globalopt] Don't emit DWARF fragments for members of a struct that cover the whole struct

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 09:11:20 PDT 2020


DavidSpickett created this revision.
DavidSpickett added reviewers: aprantl, keith.walker.arm, nathanchance.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78720

Files:
  llvm/lib/Transforms/IPO/GlobalOpt.cpp
  llvm/test/DebugInfo/Generic/global-sra-struct-zero-length.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78720.259585.patch
Type: text/x-patch
Size: 6365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200423/69949076/attachment-0001.bin>


More information about the llvm-commits mailing list