[Lldb-commits] [lldb] 98c2a85 - Minor fix to ae60869908db6e8f45b51bc35d983706e8a296ae

Zequan Wu via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 13 12:08:56 PDT 2022


Author: Zequan Wu
Date: 2022-06-13T12:08:26-07:00
New Revision: 98c2a853eb5e8b0e855f6da935889309544f6d9b

URL: https://github.com/llvm/llvm-project/commit/98c2a853eb5e8b0e855f6da935889309544f6d9b
DIFF: https://github.com/llvm/llvm-project/commit/98c2a853eb5e8b0e855f6da935889309544f6d9b.diff

LOG: Minor fix to ae60869908db6e8f45b51bc35d983706e8a296ae

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 84e535f2e0bc..1b6083c4869b 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 || cu->GetNumFunctions() == 0)
         continue;
 
       bool file_spec_matches_cu_file_spec = FileSpec::Match(


        


More information about the lldb-commits mailing list