[Modules] Fix an issue where the reconstructed redeclaration chain was...
[Modules] Fix an issue where the reconstructed redeclaration chain was incomplete, missing the definition from a module. -Make sure that a deserialized external decl gets added to the TU scope. -When associating an identifier with a set of decls, use the most recent local ones, if they exist, otherwise associating decls from modules (that came after a local one) will lead to an incomplete reconstructed re-declaration chain. rdar://13712705 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180634 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Serialization/ASTReader.h 2 additions, 0 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Serialization/ASTReader.cpp 19 additions, 6 deletionslib/Serialization/ASTReader.cpp
- lib/Serialization/ASTWriter.cpp 22 additions, 1 deletionlib/Serialization/ASTWriter.cpp
- test/Modules/redecls/a.h 3 additions, 0 deletionstest/Modules/redecls/a.h
- test/Modules/redecls/b.h 1 addition, 0 deletionstest/Modules/redecls/b.h
- test/Modules/redecls/main.m 27 additions, 0 deletionstest/Modules/redecls/main.m
- test/Modules/redecls/module.map 2 additions, 0 deletionstest/Modules/redecls/module.map
Loading
Please register or sign in to comment