From 602a951bfe3401f81e2759089b14a549c39dc394 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Mon, 13 Jun 2022 13:20:44 -0700 Subject: [PATCH] Partially revert 3222f95ea8c4de153f908c138cdec178e22acaf4 --- lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp index 1b6083c..891ee15 100644 --- a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp @@ -1052,7 +1052,7 @@ uint32_t SymbolFileNativePDB::ResolveSymbolContext( for (uint32_t cu_idx = 0, num_cus = GetNumCompileUnits(); cu_idx < num_cus; ++cu_idx) { CompileUnit *cu = ParseCompileUnitAtIndex(cu_idx).get(); - if (!cu || cu->GetNumFunctions() == 0) + if (!cu) continue; bool file_spec_matches_cu_file_spec = FileSpec::Match( -- 2.7.4