Index: source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp =================================================================== --- source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp +++ source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp @@ -1430,7 +1430,14 @@ &fdi.m_name, &fdi.m_copied_type); } - fdi_cache.emplace_back(fdi); + if (fdi.m_decl_lvl == LLDB_INVALID_DECL_LEVEL) + { + if (log) + log->Printf("INVALID_DECL_LEVEL for function declaration '%s'", + fdi.m_name.GetCString()); + } + else + fdi_cache.emplace_back(fdi); } // Loop through the functions in our cache looking for matching types,