Fix the rececl chain for redeclarations of predefined decls
Predefined decls like 'Protocol' in objc are not loaded from AST files, so we cannot rely on loading the canonical decl to complete the redecl chain for redeclarations of these decls. The broken redecl chain was non-circular, so looping over redecls() would hang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215929 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Serialization/ASTReaderDecl.cpp 2 additions, 0 deletionslib/Serialization/ASTReaderDecl.cpp
- test/Index/Inputs/declare-objc-predef.h 3 additions, 0 deletionstest/Index/Inputs/declare-objc-predef.h
- test/Index/reparse-predef-objc-protocol.m 9 additions, 0 deletionstest/Index/reparse-predef-objc-protocol.m
test/Index/Inputs/declare-objc-predef.h
0 → 100644
test/Index/reparse-predef-objc-protocol.m
0 → 100644
Please register or sign in to comment