X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=unittests%2FIR%2FValueHandleTest.cpp;h=e6eb7cbedc68193355ce71f2ae6e479f028fe0ad;hb=e86e4ec4064c81eb172ec834d0f377f799a1b3be;hp=6000c4a3105ce844def7b5d7c2e4427b4e48d29c;hpb=c16fc548515f2fd01bc2cbe4befd822a636cc154;p=oota-llvm.git 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));