aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-04-09 00:42:37 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-04-09 00:42:37 +0000
commitb9ca608737ed8735d8c64a75c973b86fa16d822b (patch)
tree6a123d533127378c80710f0773f9355d2323b01b /unittests
parent6ddf2c1930d896cbe738fab7d07dc977df41918e (diff)
downloadexternal_llvm-b9ca608737ed8735d8c64a75c973b86fa16d822b.zip
external_llvm-b9ca608737ed8735d8c64a75c973b86fa16d822b.tar.gz
external_llvm-b9ca608737ed8735d8c64a75c973b86fa16d822b.tar.bz2
Fixed compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/ConstantsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/VMCore/ConstantsTest.cpp b/unittests/VMCore/ConstantsTest.cpp
index 1f30f25..c40dc7e 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<uint64_t>(-1), true);
Constant* Undef = UndefValue::get(Int1);
// Input: @b = constant i1 add(i1 1 , i1 1)