Silencing an MSVC warning.
[oota-llvm.git] / unittests / IR / IRBuilderTest.cpp
index d79ff62b19d869175d65905473e4cbf9fdb8381a..c01d49c8e0501ae16e754ecc3281f2d959465a88 100644 (file)
@@ -187,8 +187,8 @@ TEST_F(IRBuilderTest, RAIIHelpersTest) {
   EXPECT_FALSE(Builder.getFastMathFlags().allowReciprocal());
   MDBuilder MDB(M->getContext());
 
-  MDNode *FPMathA = MDB.createFPMath(0.01);
-  MDNode *FPMathB = MDB.createFPMath(0.1);
+  MDNode *FPMathA = MDB.createFPMath(0.01f);
+  MDNode *FPMathB = MDB.createFPMath(0.1f);
 
   Builder.SetDefaultFPMathTag(FPMathA);