forked from OSchip/llvm-project
a3a8a1a15b
We can end up with a call to `indexTopLevelDecl(D)` with `D == nullptr` in non-assert builds e.g. when indexing a module in `indexModule` and - `ASTReader::GetDecl` returns `nullptr` if `Index >= DeclsLoaded.size()`, thus returning `nullptr` => `ModuleDeclIterator::operator*` returns `nullptr` => we call `IndexCtx.indexTopLevelDecl` with `nullptr` Be resilient and just ignore the `nullptr` decls during indexing. Reviewed By: akyrtzi Differential Revision: https://reviews.llvm.org/D102001 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CommentToXML.cpp | ||
FileIndexRecord.cpp | ||
FileIndexRecord.h | ||
IndexBody.cpp | ||
IndexDecl.cpp | ||
IndexSymbol.cpp | ||
IndexTypeSourceInfo.cpp | ||
IndexingAction.cpp | ||
IndexingContext.cpp | ||
IndexingContext.h | ||
USRGeneration.cpp |