<div dir="ltr">On Fri, Mar 15, 2013 at 12:49 PM, Bob Wilson <span dir="ltr"><<a href="mailto:bob.wilson@apple.com" target="_blank">bob.wilson@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Mar 15, 2013, at 10:19 AM, Bob Wilson <<a href="mailto:bob.wilson@apple.com">bob.wilson@apple.com</a>> wrote:<br>
<br>
> On Mar 15, 2013, at 8:02 AM, Nico Weber <<a href="mailto:nicolasweber@gmx.de">nicolasweber@gmx.de</a>> wrote:<br>
><br>
>> Author: nico<br>
>> Date: Fri Mar 15 10:02:37 2013<br>
>> New Revision: 177158<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=177158&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=177158&view=rev</a><br>
>> Log:<br>
>> Remove a pointless assertion.<br>
>><br>
>> FindNodeOrInsertPos() is called 10 lines earlier already, and the function<br>
>> early-returns there if the result is != 0. InsertPos isn't recomputed after<br>
>> that check, so this assert is always trivially true. (And it has nothing to<br>
>> do with if T is canonical or not.)<br>
><br>
> We're seeing several buildbots fail and this change looks like the most likely culprit.<br>
><br>
> <a href="http://lab.llvm.org:8013/builders/phase1%20-%20sanity/builds/3713" target="_blank">http://lab.llvm.org:8013/builders/phase1%20-%20sanity/builds/3713</a><br>
> <a href="http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RA/builds/2577" target="_blank">http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RA/builds/2577</a><br>
><br>
> I have reverted it to see if that is the case.  I'll reapply it if the problems turns out to be something different.<br>
<br>
</div>Reverting fixed the buildbots, so hopefully you can figure out the problem.<br></blockquote><div><br></div><div style>Sorry for the breakage, and thanks for reverting. `make test` passed locally; apparently this is visible in bootstrap builds.</div>
<div style><br></div><div style>I'll meditate on what Richard said this evening :-)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
><br>
>><br>
>> Modified:<br>
>>   cfe/trunk/lib/AST/ASTContext.cpp<br>
>><br>
>> Modified: cfe/trunk/lib/AST/ASTContext.cpp<br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=177158&r1=177157&r2=177158&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=177158&r1=177157&r2=177158&view=diff</a><br>

>> ==============================================================================<br>
>> --- cfe/trunk/lib/AST/ASTContext.cpp (original)<br>
>> +++ cfe/trunk/lib/AST/ASTContext.cpp Fri Mar 15 10:02:37 2013<br>
>> @@ -2026,13 +2026,9 @@ QualType ASTContext::getPointerType(Qual<br>
>>  // If the pointee type isn't canonical, this won't be a canonical type either,<br>
>>  // so fill in the canonical type field.<br>
>>  QualType Canonical;<br>
>> -  if (!T.isCanonical()) {<br>
>> +  if (!T.isCanonical())<br>
>>    Canonical = getPointerType(getCanonicalType(T));<br>
>><br>
>> -    // Get the new insert position for the node we care about.<br>
>> -    PointerType *NewIP = PointerTypes.FindNodeOrInsertPos(ID, InsertPos);<br>
>> -    assert(NewIP == 0 && "Shouldn't be in the map!"); (void)NewIP;<br>
>> -  }<br>
>>  PointerType *New = new (*this, TypeAlignment) PointerType(T, Canonical);<br>
>>  Types.push_back(New);<br>
>>  PointerTypes.InsertNode(New, InsertPos);<br>
>><br>
>><br>
>> _______________________________________________<br>
>> cfe-commits mailing list<br>
>> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
><br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>