From: Misha Brukman Date: Thu, 9 Apr 2009 00:42:37 +0000 (+0000) Subject: Fixed compiler warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b9ca608737ed8735d8c64a75c973b86fa16d822b;p=oota-llvm.git Fixed compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68664 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)