]> granicus.if.org Git - clang/commitdiff
Correctly initialize the visible decls pointer if there are no visible decls for...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 24 Aug 2010 00:50:00 +0000 (00:50 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 24 Aug 2010 00:50:00 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index 10eb03087ff2b39c887ecaaef9bef223082dcfc6..2a5a9ac1d9599c0988e1aaa27001c42242b46cbb 100644 (file)
@@ -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;