Partially revert 3222f95ea8

This commit is contained in:
Zequan Wu 2022-06-13 13:20:44 -07:00
parent cb9ae93712
commit 602a951bfe
1 changed files with 1 additions and 1 deletions

View File

@ -1052,7 +1052,7 @@ uint32_t SymbolFileNativePDB::ResolveSymbolContext(
for (uint32_t cu_idx = 0, num_cus = GetNumCompileUnits(); cu_idx < num_cus; for (uint32_t cu_idx = 0, num_cus = GetNumCompileUnits(); cu_idx < num_cus;
++cu_idx) { ++cu_idx) {
CompileUnit *cu = ParseCompileUnitAtIndex(cu_idx).get(); CompileUnit *cu = ParseCompileUnitAtIndex(cu_idx).get();
if (!cu || cu->GetNumFunctions() == 0) if (!cu)
continue; continue;
bool file_spec_matches_cu_file_spec = FileSpec::Match( bool file_spec_matches_cu_file_spec = FileSpec::Match(