From 2bd636f589302ec937c732d3761325ecc2f88dd2 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 13 Mar 2012 04:12:34 +0000 Subject: It never makes sense to do a lookup into a LinkageSpecDecl, so assert that we don't, and clean up the places that do it. The change to ASTWriter is surprising, but the deleted code is a no-op as of r152608. llvm-svn: 152609 --- clang/lib/Serialization/ASTWriter.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'clang/lib/Serialization') diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index cb320684426..a6cccbf4b54 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -2792,10 +2792,6 @@ uint64_t ASTWriter::WriteDeclContextVisibleBlock(ASTContext &Context, if (DC->isTranslationUnit() && !Context.getLangOpts().CPlusPlus) return 0; - // Force the DeclContext to build a its name-lookup table. - if (!DC->hasExternalVisibleStorage()) - DC->lookup(DeclarationName()); - // Serialize the contents of the mapping used for lookup. Note that, // although we have two very different code paths, the serialized // representation is the same for both cases: a declaration name, -- cgit v1.2.3