From 89f0b2d8a2a88609b859e040d0593fcff364e3d0 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 15 Apr 2012 12:36:49 +0000 Subject: Use forward declarations for ASTDeclContextNameLookupTable and add a missing delete. It would be nice to use OwningPtr here, but DeclContextInfo is stored in a DenseMap. llvm-svn: 154763 --- clang/lib/Serialization/Module.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Serialization/Module.cpp') diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp index 16b95e2a683..ff241d3d410 100644 --- a/clang/lib/Serialization/Module.cpp +++ b/clang/lib/Serialization/Module.cpp @@ -45,8 +45,7 @@ ModuleFile::~ModuleFile() { E = DeclContextInfos.end(); I != E; ++I) { if (I->second.NameLookupTableData) - delete static_cast( - I->second.NameLookupTableData); + delete I->second.NameLookupTableData; } delete static_cast(IdentifierLookupTable); -- cgit v1.2.3