[cfe-commits] r75314 - in /cfe/trunk: include/clang/AST/ include/clang/Analysis/PathSensitive/ lib/AST/ lib/Analysis/ lib/CodeGen/ lib/Frontend/ lib/Sema/ test/CodeGenObjC/ test/PCH/ test/SemaObjC/ test/SemaObjCXX/

Fariborz Jahanian fjahanian at apple.com
Mon Jul 13 14:05:01 PDT 2009


On Jul 13, 2009, at 1:58 PM, Chris Lattner wrote:

> On Jul 13, 2009, at 1:47 PM, steve naroff wrote:
>>>
>>> NSString *X;
>>>  X+4;
>>>
>>
>> I see...I guess I read your response too quickly (sorry for the
>> confusion).
>>
>> clang allows this (for GCC compatibility). I'd have no problem
>> rejecting code like this (since it is silly):
>
> We do reject it in 64-bit mode, but that's not my point.  This code is
> in the code generator: codegen should be handling objc and c pointers
> the same here I think.

Yes. We have a test case interface.m which checks for codegen in 32bit  
mode.

- fariborz

>
>
> Thanks Steve,
>
> -Chris
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list