[LLVMdev] ConstantFP API Change

Chris Lattner clattner at apple.com
Sat Apr 19 17:54:54 PDT 2008

Hi All,

At some point in the next week or two I'm going to remove the  
ConstantFP::get(type, APFloat) method.  Right now, you can immediately  
fix your code by dropping the first 'type' argument.  For example, if  
you have:

   ConstantFP::get(Ty, APFloat(1.0))

just change it to:


Both forms work with SVN head right now so you can migrate as  
convenient.  The former will stop working in a week or two.


More information about the llvm-dev mailing list