diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/unittests/IR/ValueHandleTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ValueHandleTest.cpp b/llvm/unittests/IR/ValueHandleTest.cpp index 6000c4a3105..e6eb7cbedc6 100644 --- a/llvm/unittests/IR/ValueHandleTest.cpp +++ b/llvm/unittests/IR/ValueHandleTest.cpp @@ -21,7 +21,7 @@ namespace { class ValueHandle : public testing::Test { protected: Constant *ConstantV; - std::auto_ptr<BitCastInst> BitcastV; + std::unique_ptr<BitCastInst> BitcastV; ValueHandle() : ConstantV(ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 0)), @@ -320,7 +320,7 @@ TEST_F(ValueHandle, CallbackVH_DeletionCanRAUW) { // a CallbackVH to remove the uses before the check for no uses. RecoveringVH RVH; RVH = BitcastV.get(); - std::auto_ptr<BinaryOperator> BitcastUser( + std::unique_ptr<BinaryOperator> BitcastUser( BinaryOperator::CreateAdd(RVH, Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0)); |