aboutsummaryrefslogtreecommitdiff
path: root/unittests/Support/ValueHandleTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-07-31 20:56:31 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-07-31 20:56:31 +0000
commitfeba7562ec3420b52d9d395ae4b279157c55586b (patch)
treee1cd5f66ce1f18ffddf7f20faadb98a3509c3f20 /unittests/Support/ValueHandleTest.cpp
parentb41fc9f05c4d0384e20bfe3abafbfd953ec00dec (diff)
Update unittest for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/ValueHandleTest.cpp')
-rw-r--r--unittests/Support/ValueHandleTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Support/ValueHandleTest.cpp b/unittests/Support/ValueHandleTest.cpp
index 833c68405b..d9a5515f78 100644
--- a/unittests/Support/ValueHandleTest.cpp
+++ b/unittests/Support/ValueHandleTest.cpp
@@ -312,11 +312,11 @@ TEST_F(ValueHandle, CallbackVH_DeletionCanRAUW) {
RVH = BitcastV.get();
std::auto_ptr<BinaryOperator> BitcastUser(
BinaryOperator::CreateAdd(RVH,
- getGlobalContext().getNullValue(Type::Int32Ty)));
+ Constant::getNullValue(Type::Int32Ty)));
EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0));
BitcastV.reset(); // Would crash without the ValueHandler.
- EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty), RVH.AURWArgument);
- EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty),
+ EXPECT_EQ(Constant::getNullValue(Type::Int32Ty), RVH.AURWArgument);
+ EXPECT_EQ(Constant::getNullValue(Type::Int32Ty),
BitcastUser->getOperand(0));
}