Fixed compilation on Windows.
Silenced a couple of warnings.
Added *.vcproj file for new clangAnalysis library.
Renamed Basic to clangBasic projects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41767 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGExprScalar.cpp b/CodeGen/CGExprScalar.cpp
index 3bb2678..96203f0 100644
--- a/CodeGen/CGExprScalar.cpp
+++ b/CodeGen/CGExprScalar.cpp
@@ -469,7 +469,8 @@
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");
}