[llvm-commits] [llvm-gcc-4.2] r79605 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Fri Aug 21 10:38:55 PDT 2009


Hi Bill,

> The result type isn't necessarily the size of the pointer, and isn't 
> always a pointer either. I just feel a bit more comfortable with using 
> the equivalent pointer's integer size I guess? I don't know. It probably 
> doesn't really make a different since it'll be truncated nonetheless...

fair enough.  Then can you please replace your case statement with

>> Ty = IntegerType::get(Context, TYPE_PRECISION(TREE_TYPE (TREE_OPERAND 
>> (exp, 0))));

instead.

Thanks!

Duncan.



More information about the llvm-commits mailing list