<div dir="ltr">I could pass a callback to indicate whether the node is an empty node and rewrite this code but I don't quite understand why this is so out of place in CallGraphTraits (not in GraphTraits). </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 22, 2018 at 4:01 PM, Daniel Berlin via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dberlin added a comment.<br>
<br>
I don't understand why you need has_function_def. It looks very much like a thing you should just be using a filter_iterator for or something. It does not look like it belongs in the graphtraits at all.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D42311" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D42311</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>