Fix a bug reduced from a crash when trying to use modules with libc++. We check
the linkage of functions and variables while merging declarations from modules, and we don't necessarily have enough of the rest of the AST loaded at that point to allow us to compute linkage, so serialize it instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174943 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/AST/Decl.cpp 1 addition, 4 deletionslib/AST/Decl.cpp
- lib/Serialization/ASTReaderDecl.cpp 4 additions, 0 deletionslib/Serialization/ASTReaderDecl.cpp
- lib/Serialization/ASTWriterDecl.cpp 4 additions, 0 deletionslib/Serialization/ASTWriterDecl.cpp
- test/Modules/Inputs/cxx-linkage-cache.h 11 additions, 0 deletionstest/Modules/Inputs/cxx-linkage-cache.h
- test/Modules/Inputs/module.map 4 additions, 0 deletionstest/Modules/Inputs/module.map
- test/Modules/cxx-linkage-cache.cpp 8 additions, 0 deletionstest/Modules/cxx-linkage-cache.cpp
Loading
Please register or sign in to comment