From 0ea8f7f5a4eba47ae226dd47c6dce39eef0c554c Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Tue, 24 Aug 2010 00:50:00 +0000 Subject: [PATCH] Correctly initialize the visible decls pointer if there are no visible decls for a record. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111879 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Serialization/ASTReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 10eb03087f..2a5a9ac1d9 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -927,6 +927,8 @@ bool ASTReader::ReadDeclContextStorage(llvm::BitstreamCursor &Cursor, (const unsigned char *)Blob + Record[0], (const unsigned char *)Blob, ASTDeclContextNameLookupTrait(*this)); + } else { + Info.NameLookupTableData = 0; } return false; -- 2.50.1