aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/Support/ValueHandleTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Support/ValueHandleTest.cpp')
-rw-r--r--unittests/Support/ValueHandleTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/ValueHandleTest.cpp b/unittests/Support/ValueHandleTest.cpp
index fc2b9de..833c684 100644
--- a/unittests/Support/ValueHandleTest.cpp
+++ b/unittests/Support/ValueHandleTest.cpp
@@ -295,7 +295,7 @@ TEST_F(ValueHandle, CallbackVH_DeletionCanRAUW) {
private:
virtual void deleted() {
- getValPtr()->replaceAllUsesWith(Context->getNullValue(Type::Int32Ty));
+ getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::Int32Ty));
setValPtr(NULL);
}
virtual void allUsesReplacedWith(Value *new_value) {