[llvm-commits] [llvm] r68664 - /llvm/trunk/unittests/VMCore/ConstantsTest.cpp

Misha Brukman brukman+llvm at gmail.com
Wed Apr 8 17:42:39 PDT 2009


Author: brukman
Date: Wed Apr  8 19:42:37 2009
New Revision: 68664

URL: http://llvm.org/viewvc/llvm-project?rev=68664&view=rev
Log:
Fixed compiler warning.

Modified:
    llvm/trunk/unittests/VMCore/ConstantsTest.cpp

Modified: llvm/trunk/unittests/VMCore/ConstantsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/VMCore/ConstantsTest.cpp?rev=68664&r1=68663&r2=68664&view=diff

==============================================================================
--- llvm/trunk/unittests/VMCore/ConstantsTest.cpp (original)
+++ llvm/trunk/unittests/VMCore/ConstantsTest.cpp Wed Apr  8 19:42:37 2009
@@ -18,7 +18,7 @@
   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<uint64_t>(-1), true);
   Constant* Undef = UndefValue::get(Int1);
 
   // Input:  @b = constant i1 add(i1 1 , i1 1)





More information about the llvm-commits mailing list