]> granicus.if.org Git - clang/commit
Fix PR 4489, a crash in PCH loading that occurs when loading the name
authorDouglas Gregor <dgregor@apple.com>
Mon, 6 Jul 2009 18:54:52 +0000 (18:54 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 6 Jul 2009 18:54:52 +0000 (18:54 +0000)
commitd89275bc865e2b552836c7b33e636d4f86b8de6d
tree01ce0b7de6019389f8d6ed51af59339bacdf845d
parent6d4b76d93cbc5ad05af4cd2815c86febbfd5e798
Fix PR 4489, a crash in PCH loading that occurs when loading the name
of a top-level declaration loads another top-level declaration of the
same name whose type depends on the first declaration having been
completed. This commit breaks the circular dependency by delaying
loads of top-level declarations triggered by loading a name until we
are no longer recursively loading types or declarations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74847 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PCHReader.h
lib/Frontend/PCHReader.cpp
lib/Frontend/PCHReaderDecl.cpp
test/PCH/pr4489.c