diff options
| author | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-09-07 14:34:20 +0000 |
|---|---|---|
| committer | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-09-07 14:34:20 +0000 |
| commit | ec7531c9f6c1ee6463f442e90252433b71d25b3c (patch) | |
| tree | ab234b9fcd06da1dd90823934742982ef7f817d5 /clang/CodeGen/CGExprScalar.cpp | |
| parent | 122bf4be7eb7b741c01a159513d45b7297acd523 (diff) | |
| download | bcm5719-llvm-ec7531c9f6c1ee6463f442e90252433b71d25b3c.tar.gz bcm5719-llvm-ec7531c9f6c1ee6463f442e90252433b71d25b3c.zip | |
Fixed compilation on Windows.
Silenced a couple of warnings.
Added *.vcproj file for new clangAnalysis library.
Renamed Basic to clangBasic projects.
llvm-svn: 41767
Diffstat (limited to 'clang/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | clang/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/CodeGen/CGExprScalar.cpp b/clang/CodeGen/CGExprScalar.cpp index 3bb2678a6cb..96203f04ba8 100644 --- a/clang/CodeGen/CGExprScalar.cpp +++ b/clang/CodeGen/CGExprScalar.cpp @@ -469,7 +469,8 @@ Value *ScalarExprEmitter::VisitPrePostIncDec(const UnaryOperator *E, if (isa<llvm::IntegerType>(InVal->getType())) NextVal = llvm::ConstantInt::get(InVal->getType(), AmountVal); else - NextVal = llvm::ConstantFP::get(InVal->getType(), AmountVal); + NextVal = llvm::ConstantFP::get(InVal->getType(), + static_cast<double>(AmountVal)); NextVal = Builder.CreateAdd(InVal, NextVal, isInc ? "inc" : "dec"); } |

