<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 21, 2017 at 3:41 PM Adrian Prantl via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">aprantl added inline comments.<br>
<br>
<br>
================<br>
Comment at: lib/DebugInfo/DWARF/DWARFVerifier.cpp:218<br>
+  for (auto Range : Die.getAddressRanges()) {<br>
+    if (Range.LowPC > Range.HighPC) {<br>
+      ++NumErrors;<br>
----------------<br>
dblaikie wrote:<br>
> Should this be >=? Or is it intentional that empty ranges are allowed to account for things like comdat functions being omitted by the linker & resolving the addresses to zero? (I forget exactly how those work)<br>
I assume that this is just copying darwin-dwarfdump behavior, but it also looks like DWARF allows a single DW_AT_low_pc to be attached to a DW_TAG_label, which would then show up as an entity of size 0. (cf. 2.17.1 Single Address)<br></blockquote><div><br></div><div>Presumably that could be differentiated because it has no high_pc at all compared to one being present and having the same value as low_pc?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<a href="https://reviews.llvm.org/D35733" rel="noreferrer" target="_blank">https://reviews.llvm.org/D35733</a><br>
<br>
<br>
<br>
</blockquote></div></div>