diff options
author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-09 11:34:25 +0000 |
---|---|---|
committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-09 11:34:25 +0000 |
commit | facff14381fb9f680be94df36f06de68dd05b49a (patch) | |
tree | 7a44e4f208dc0e23d0fc03dca76422da9e5a3d74 /lib/Sema/SemaDeclObjC.cpp | |
parent | f47666e2ffb701c546caaeaf035add60b5d915e6 (diff) |
[C++11] Remove the remaining uses of OwningPtr.
Replace OwningArrayPtr with std::unique_ptr<T[]>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 3dc37a9f5a..e19432aea9 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1631,9 +1631,7 @@ void Sema::WarnExactTypedMethods(ObjCMethodDecl *ImpMethodDecl, /// memory cost and it would be handy for lookups. typedef llvm::DenseSet<IdentifierInfo*> ProtocolNameSet; -typedef llvm::OwningPtr<ProtocolNameSet> LazyProtocolNameSet; - - +typedef std::unique_ptr<ProtocolNameSet> LazyProtocolNameSet; static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, ProtocolNameSet &PNS) { @@ -1691,7 +1689,7 @@ static void CheckProtocolMethodDefs(Sema &S, // change is restricted to 'objc_protocol_requires_explicit_implementation' // protocols for now for controlled evaluation. if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { - if (!ProtocolsExplictImpl.isValid()) { + if (!ProtocolsExplictImpl) { ProtocolsExplictImpl.reset(new ProtocolNameSet); findProtocolsWithExplicitImpls(Super, *ProtocolsExplictImpl); } |