From bc9eee72cf27a4285b7f449b1c0f7d5e7e89c4aa Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 22 Apr 2015 04:39:13 +0000 Subject: [PATCH] Replace std::auto_ptr with std::unique_ptr MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit std::auto_ptr is deprecated in GCC 5.0, and we are already using std::unique_ptr all over the place. Patch by Xan López. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235479 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/IR/ValueHandleTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/IR/ValueHandleTest.cpp b/unittests/IR/ValueHandleTest.cpp index 6000c4a3105..e6eb7cbedc6 100644 --- a/unittests/IR/ValueHandleTest.cpp +++ b/unittests/IR/ValueHandleTest.cpp @@ -21,7 +21,7 @@ namespace { class ValueHandle : public testing::Test { protected: Constant *ConstantV; - std::auto_ptr BitcastV; + std::unique_ptr 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 BitcastUser( + std::unique_ptr BitcastUser( BinaryOperator::CreateAdd(RVH, Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0)); -- 2.34.1