summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-20 00:45:53 +0000
committerChris Lattner <sabre@nondot.org>2008-04-20 00:45:53 +0000
commit1886e71e477d632ae320da229a54d7acbfa9271d (patch)
tree84a503c0e24dea0f52c2f5a785d50f1c47849c12 /clang/lib/CodeGen/CGExprConstant.cpp
parent167dbe5e39f42f2a5a12aab94c4543afab7e0b2a (diff)
downloadbcm5719-llvm-1886e71e477d632ae320da229a54d7acbfa9271d.tar.gz
bcm5719-llvm-1886e71e477d632ae320da229a54d7acbfa9271d.zip
use simplified ConstantFP:get method.
llvm-svn: 49979
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index ace494c86a2..94ff8f779c3 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud