[cfe-commits] r55311 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Chris Lattner clattner at apple.com
Mon Aug 25 10:08:21 PDT 2008


On Aug 25, 2008, at 2:51 AM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Mon Aug 25 04:51:32 2008
> New Revision: 55311
>
> URL: http://llvm.org/viewvc/llvm-project?rev=55311&view=rev
> Log:
> Do is-a-pointer checks in terms of LLVM types in
> EmitScalarConversion().
> - Important for allowing Obj-C void * to id<X> casts and so on.
> - Not sure about this fix however, perhaps Type should understand
>   that id is effectively a pointer type.

This is a bit tricky, don't arrays and vlas decay to llvm pointers?   
Maybe it would be better to add a new predicate to Type.

-Chris




More information about the cfe-commits mailing list