diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-06-10 01:32:09 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-06-10 01:32:09 +0000 |
commit | 7643536c36b0449256d5ee2efc03a7e4a784a0b3 (patch) | |
tree | 1865a0f0714ac93ecc368224cdd2afa34c5dc1c9 /lib/AST/Decl.cpp | |
parent | a7a6dc01b769283c46cba2812dc078c0b20a0f14 (diff) |
-Add DeclChain member to DeclContext.
-ScopedDecls get chained to their DeclContext.
-DeclContext's DeclChain replaces FunctionDecl's DeclChain and EnumDecl's ElementList.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 47334f53cc..949d10072e 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -116,7 +116,7 @@ RecordDecl *RecordDecl::Create(ASTContext &C, TagKind TK, DeclContext *DC, } void EnumDecl::Destroy(ASTContext& C) { - if (ElementList) ElementList->Destroy(C); + if (getEnumConstantList()) getEnumConstantList()->Destroy(C); Decl::Destroy(C); } |