When we reach the end of a #include of a header of a local submodule that we
textually included, create an ImportDecl just as we would if we reached a #include of any other modular header. This is necessary in order to correctly determine the set of variables to initialize for an imported module. This should hopefully make the modules selfhost buildbot green again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280409 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Sema/Sema.h 1 addition, 0 deletionsinclude/clang/Sema/Sema.h
- lib/Sema/SemaDecl.cpp 17 additions, 7 deletionslib/Sema/SemaDecl.cpp
- test/Modules/global-init.cpp 19 additions, 0 deletionstest/Modules/global-init.cpp
- tools/libclang/CXIndexDataConsumer.cpp 8 additions, 0 deletionstools/libclang/CXIndexDataConsumer.cpp
Loading
Please register or sign in to comment