diff options
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 2 |
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()); |