From b9ca608737ed8735d8c64a75c973b86fa16d822b Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 9 Apr 2009 00:42:37 +0000 Subject: [PATCH] Fixed compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68664 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/VMCore/ConstantsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/VMCore/ConstantsTest.cpp b/unittests/VMCore/ConstantsTest.cpp index 1f30f2522f1..c40dc7e4715 100644 --- a/unittests/VMCore/ConstantsTest.cpp +++ b/unittests/VMCore/ConstantsTest.cpp @@ -18,7 +18,7 @@ TEST(ConstantsTest, Integer_i1) { const IntegerType* Int1 = IntegerType::get(1); Constant* One = ConstantInt::get(Int1, 1, true); Constant* Zero = ConstantInt::get(Int1, 0); - Constant* NegOne = ConstantInt::get(Int1, -1, true); + Constant* NegOne = ConstantInt::get(Int1, static_cast(-1), true); Constant* Undef = UndefValue::get(Int1); // Input: @b = constant i1 add(i1 1 , i1 1) -- 2.34.1