Modules: set SystemHeader to true if we are building a system module.
If we are processing a #include from a module build, we should treat it as a system header if we're building a system module. Passing an optional flag to HeaderSearch::LookupFile. Before this, the testing case will crash when accessing a freed FileEntry. rdar://26214027 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269730 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Lex/HeaderSearch.h 1 addition, 1 deletioninclude/clang/Lex/HeaderSearch.h
- lib/Lex/HeaderSearch.cpp 4 additions, 3 deletionslib/Lex/HeaderSearch.cpp
- lib/Lex/PPDirectives.cpp 6 additions, 3 deletionslib/Lex/PPDirectives.cpp
- test/Modules/Inputs/UseAfterFree/UseAfterFreePrivate.h 1 addition, 0 deletionstest/Modules/Inputs/UseAfterFree/UseAfterFreePrivate.h
- test/Modules/Inputs/UseAfterFree/UseAfterFreePublic.h 2 additions, 0 deletionstest/Modules/Inputs/UseAfterFree/UseAfterFreePublic.h
- test/Modules/Inputs/UseAfterFree/module.map 3 additions, 0 deletionstest/Modules/Inputs/UseAfterFree/module.map
- test/Modules/Inputs/UseAfterFree/module_private.map 3 additions, 0 deletionstest/Modules/Inputs/UseAfterFree/module_private.map
- test/Modules/use-after-free.m 24 additions, 0 deletionstest/Modules/use-after-free.m
Loading
Please register or sign in to comment