[llvm-commits] [llvm-gcc-4.2] r41750 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
dalej at apple.com
Thu Sep 6 13:02:35 PDT 2007
On Sep 6, 2007, at 12:54 PM, Duncan Sands wrote:
> Hi Dale,
>> + return ConstantFP::get(Ty, Ty==Type::FloatTy ? APFloat((float)V)
>> + : APFloat(V));
> what does having the conversion to float do here?
There is a type in the APFloat and ConstantFP::get likes it to match
the type passed in.
(It's undesirable to have to maintain them in parallel, of course,
and I'm likely to get rid
of this when I think of a good way.)
More information about the llvm-commits