adjust calls to ConstantFP::get to new API

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif
2008-06-10 01:52:17 +00:00
parent c5b822b5b6
commit 5934adf9bb
5 changed files with 20 additions and 20 deletions

View File

@@ -863,7 +863,7 @@ static FunctionPassManager *TheFPM;
Value *ErrorV(const char *Str) { Error(Str); return 0; }
Value *NumberExprAST::Codegen() {
return ConstantFP::get(Type::DoubleTy, APFloat(Val));
return ConstantFP::get(APFloat(Val));
}
Value *VariableExprAST::Codegen() {