diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-02-20 17:53:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-02-20 17:53:35 +0000 |
| commit | a11480defac8c9c4118033bfc42ba1362de529e6 (patch) | |
| tree | c61af1ee2dc7bcca5272aa57f470e89faf09a6ef /clang | |
| parent | 053737e1ae5b62aa9a2e78a0b6c6430d33b09524 (diff) | |
| download | bcm5719-llvm-a11480defac8c9c4118033bfc42ba1362de529e6.tar.gz bcm5719-llvm-a11480defac8c9c4118033bfc42ba1362de529e6.zip | |
remove a dead list.
llvm-svn: 65127
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/AST/DeclObjC.h | 9 | ||||
| -rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 3 |
2 files changed, 2 insertions, 10 deletions
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h index dd6856f32cd..d7abcaaa627 100644 --- a/clang/include/clang/AST/DeclObjC.h +++ b/clang/include/clang/AST/DeclObjC.h @@ -575,10 +575,6 @@ class ObjCProtocolDecl : public ObjCContainerDecl { /// Referenced protocols ObjCList<ObjCProtocolDecl> ReferencedProtocols; - /// protocol properties - ObjCPropertyDecl **PropertyDecl; // Null if no property - unsigned NumPropertyDecl; // 0 if none - bool isForwardProtoDecl; // declared with @protocol. SourceLocation EndLoc; // marks the '>' or identifier. @@ -586,13 +582,10 @@ class ObjCProtocolDecl : public ObjCContainerDecl { ObjCProtocolDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id) : ObjCContainerDecl(ObjCProtocol, DC, L, Id), - PropertyDecl(0), NumPropertyDecl(0), isForwardProtoDecl(true) { } - virtual ~ObjCProtocolDecl() { - assert(PropertyDecl == 0 && "Destroy not called?"); - } + virtual ~ObjCProtocolDecl() {} public: static ObjCProtocolDecl *Create(ASTContext &C, DeclContext *DC, diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 1651df91413..5b59af9d953 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -106,8 +106,7 @@ ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, DeclContext *DC, } void ObjCProtocolDecl::Destroy(ASTContext &C) { - delete [] PropertyDecl; - PropertyDecl = 0; + ReferencedProtocols.clear(); ObjCContainerDecl::Destroy(C); } |

