From 5934adf9bbe4e5b06d313e58bdae5907c11cfa51 Mon Sep 17 00:00:00 2001
From: Gabor Greif
Date: Tue, 10 Jun 2008 01:52:17 +0000
Subject: 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
---
docs/tutorial/LangImpl3.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'docs/tutorial/LangImpl3.html')
diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html
index 39a672dc86..2acd3ddb53 100644
--- a/docs/tutorial/LangImpl3.html
+++ b/docs/tutorial/LangImpl3.html
@@ -159,7 +159,7 @@ we'll do numeric literals:
Value *NumberExprAST::Codegen() {
- return ConstantFP::get(Type::DoubleTy, APFloat(Val));
+ return ConstantFP::get(APFloat(Val));
}
@@ -1033,7 +1033,7 @@ static std::map<std::string, Value*> NamedValues;
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() {
--
cgit v1.2.3-70-g09d2