diff options
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); } |