[PATCH] D28261: Correct the parent testing to avoid the special case where a DIE has a depth of 1

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 16:14:09 PST 2017


clayborg created this revision.
clayborg added reviewers: dblaikie, probinson, aprantl, llvm-commits.
Herald added a subscriber: jgosnell.

This test was testing that we could correctly find the parent of a DIE, but it was actually just testing the special case where a DIE's depth was 1. This corrects that error by adding an extra level into the the DWARF to ensure that we correctly get the parent by looking for the parent with a depth that is 1 less than the current depth.


https://reviews.llvm.org/D28261

Files:
  unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28261.82967.patch
Type: text/x-patch
Size: 4198 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/eef10bb9/attachment.bin>


More information about the llvm-commits mailing list