<div dir="ltr">(and FWIW, the reason it needs fixing is it makes it impossible to use find in unit tests, see the FIXME i'm about to commit to smallptrsettest)<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 10:43 AM, Daniel Berlin <span dir="ltr"><<a href="mailto:dberlin@dberlin.org" target="_blank">dberlin@dberlin.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So, this change breaks smallptrset's find function when it is on.<div><br></div><div>Trivial test case:<br><div>  SmallPtrSet<int *, 8> IntSet;</div><div>  int A;</div><div>  int *B = &A;</div></div><div><div>  EXPECT_FALSE(IntSet.find(B) == IntSet.end());</div></div><div><br></div><div>Because you've made the end iterator point somewhere else, this will no longer work.</div><div><br></div><div>Please fix.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 3:38 PM, Craig Topper via Phabricator via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">craig.topper added a comment.<br>
<br>
I know this was turned in a while ago. But should the command line option have a description or be marked hidden or both. I believe it shows up in -help on a debug build, but has no description.<br>
<span class="m_7097591229763805966im m_7097591229763805966HOEnZb"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D26718" rel="noreferrer" target="_blank">https://reviews.llvm.org/D2671<wbr>8</a><br>
<br>
<br>
<br>
</span><div class="m_7097591229763805966HOEnZb"><div class="m_7097591229763805966h5">______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>