When reading the AST, delay loading of the redeclaration chain to avoid deeply nested calls.
Temporarily set the first (canonical) declaration as the previous one, which is the one that matters, and mark the real previous DeclID to be loaded & attached later on. Fixes rdar://8956193. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125434 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Serialization/ASTReader.h 7 additions, 0 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Serialization/ASTReader.cpp 7 additions, 0 deletionslib/Serialization/ASTReader.cpp
- lib/Serialization/ASTReaderDecl.cpp 49 additions, 9 deletionslib/Serialization/ASTReaderDecl.cpp
- lib/Serialization/ASTWriterDecl.cpp 11 additions, 3 deletionslib/Serialization/ASTWriterDecl.cpp
- test/Index/c-index-redecls.c 107 additions, 0 deletionstest/Index/c-index-redecls.c
Loading
Please register or sign in to comment