r177329 - This code works around what appears to be a bug in another part of clang.

reed kotler rkotler at mips.com
Tue Mar 19 11:26:26 PDT 2013


On 03/19/2013 08:15 AM, reed kotler wrote:
> On 03/19/2013 08:07 AM, Rafael EspĂ­ndola wrote:
>>> Okay. thanks for the help.
>>>
>>> I will take care of this today.
>> Fixed in r177402. Please put a bit more effort into testing and
>> understanding the problems next time. This thread took more effort
>> than the bug it is about :-(
>>
>>> Reed
>>>
>>>
>> Cheers,
>> Rafael
> I appreciate all the help.
>
> I understand what you want in the future as to how to handle these 
> situations in the code when they arise and I will do my best to adhere 
> to it.
>
> I would like to then add an llvm_unreachable in our code to make sure 
> that I don't again see something unexpected.
>
> So I'm not expecting to see a Function Declaration and then a Global 
> Value that is not a function when attributes are being propagated.
>
> I will file a bug against this whole file TargetLowering.cpp. There is 
> similar cleanup needed everywhere for several issues that I've found 
> while adding the Mips attributes.
>
> Reed
>
>
>
I understand now your reason to leave the cast in there as opposed to a 
dyn_cast and a check.

I think this case is closed.

Thanks for all the help.

Reed





More information about the cfe-commits mailing list