diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-20 00:45:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-20 00:45:53 +0000 |
commit | 59138ba7ce960888433546639deb45e2e03f8857 (patch) | |
tree | e4c12bbf7b9193549a0dde6a34087a6db90daf55 /lib/CodeGen/CGExprConstant.cpp | |
parent | f3d8d19caf6f1a21785eee8d62c45ef5a0a0e72e (diff) |
use simplified ConstantFP:get method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index ace494c86a..94ff8f779c 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -50,7 +50,7 @@ public: return llvm::ConstantInt::get(E->getValue()); } llvm::Constant *VisitFloatingLiteral(const FloatingLiteral *E) { - return llvm::ConstantFP::get(ConvertType(E->getType()), E->getValue()); + return llvm::ConstantFP::get(E->getValue()); } llvm::Constant *VisitCharacterLiteral(const CharacterLiteral *E) { return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue()); |