[cfe-dev] Fixing selector types on the GNU runtime

Chris Lattner clattner at apple.com
Wed Jan 21 10:53:27 PST 2009


On Jan 21, 2009, at 10:37 AM, David Chisnall wrote:

>
> On 21 Jan 2009, at 18:27, Chris Lattner wrote:
>
>>
>> On Jan 21, 2009, at 4:18 AM, David Chisnall wrote:
>>> have attached a diff that only fixes the type conversion error,  
>>> and leaves the unsafe variadic function calls in.
>>
>> This patch doesn't apply for me:
>>
>> patching file lib/CodeGen/CGObjCGNU.cpp
>> patch: **** malformed patch at line 33: @@ -797,6 +800,9 @@
>>
>> -Chris
>
> Ooops.  I deleted a bit in the middle of a chunk.  Fixed.

This didn't apply either, but I did it manually:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090119/011121.html

However, why are you using 'getTypeAtIndex'? That always returns i64  
for a pointer, it is not returning the first element of the struct.   
Is that what you want?

-Chris



More information about the cfe-dev mailing list