aboutsummaryrefslogtreecommitdiff
path: root/lib/Serialization
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-08-24 00:50:00 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-08-24 00:50:00 +0000
commit0ea8f7f5a4eba47ae226dd47c6dce39eef0c554c (patch)
tree2fe12ca20a6a54350d38718ecc34e05379edc3c4 /lib/Serialization
parent8b12273c86ede439edf52d35b170fd32b2ed49d4 (diff)
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
Diffstat (limited to 'lib/Serialization')
-rw-r--r--lib/Serialization/ASTReader.cpp2
1 files changed, 2 insertions, 0 deletions
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;