[LLVMdev] regression? Or did I do something wrong again?

Hendrik Boom hendrik at topoi.pooq.com
Mon Jun 9 16:51:06 PDT 2008


On Mon, 09 Jun 2008 12:06:19 -0700, Eli Friedman wrote:
> 
> That should be easy to fix; from the LLVM 2.3 release notes: "The
> ConstantFP::get method that uses APFloat now takes one argument
> instead of two. The type argument has been removed, and the type is
> now inferred from the size of the given APFloat value."  So to make it
> compile,  "ConstantFP::get(Type::DoubleTy, APFloat(Val));" needs to be
> changed to "ConstantFP::get(APFloat(Val));".
> 
> -Eli

And removing the first argument in toy.cpp program does indeed make it
work.

-- hendrik




More information about the llvm-dev mailing list