diff options
Diffstat (limited to 'unittests/VMCore/ConstantsTest.cpp')
-rw-r--r-- | unittests/VMCore/ConstantsTest.cpp | 2 |
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) |