<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 25, 2017 at 1:47 PM, Alex Telishev 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">alex.telishev added a comment.<br>
<span class=""><br>
> Now consider lessVariable(C1, C2). At line 191, lessVariable returns true because S1<S2. How about lessVariable(C2, C3)? At line 191, lessVaraible returns true because S2<S3. At this point, it concludes that C1<C2<C3. But that's wrong because both lessVaraible(C1, C3) and lessVariable(C3, C1) return false. That's what I was saying that the comparison function is not transitive.<br>
<br>
</span>I thought about that, this problem is taken care of because of type comparion - lessVariable(C1, C2) will `return false` at line 141. Actually, at line 191 we can only be both `nullptr` or both not.<br></blockquote><div><br></div><div>Line 141 seems a blank line.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="https://reviews.llvm.org/D36963" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D36963</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div>