[Lldb-commits] [lldb] 602a951 - Partially revert 3222f95ea8c4de153f908c138cdec178e22acaf4

Zequan Wu via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 13 13:29:41 PDT 2022


Author: Zequan Wu
Date: 2022-06-13T13:29:32-07:00
New Revision: 602a951bfe3401f81e2759089b14a549c39dc394

URL: https://github.com/llvm/llvm-project/commit/602a951bfe3401f81e2759089b14a549c39dc394
DIFF: https://github.com/llvm/llvm-project/commit/602a951bfe3401f81e2759089b14a549c39dc394.diff

LOG: Partially revert 3222f95ea8c4de153f908c138cdec178e22acaf4

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
index 1b6083c4869b5..891ee15af9477 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(


        


More information about the lldb-commits mailing list