diff options
Diffstat (limited to 'llvm/unittests/VMCore/ConstantsTest.cpp')
-rw-r--r-- | llvm/unittests/VMCore/ConstantsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/VMCore/ConstantsTest.cpp b/llvm/unittests/VMCore/ConstantsTest.cpp index 8879d3bdf46..42bb6cc2ecd 100644 --- a/llvm/unittests/VMCore/ConstantsTest.cpp +++ b/llvm/unittests/VMCore/ConstantsTest.cpp @@ -21,7 +21,7 @@ TEST(ConstantsTest, Integer_i1) { Constant* Zero = ConstantInt::get(Int1, 0); Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); - Constant* Undef = getGlobalContext().getUndef(Int1); + Constant* Undef = UndefValue::get(Int1); // Input: @b = constant i1 add(i1 1 , i1 1) // Output: @b = constant i1 false |