[Lldb-commits] [lldb] e55a097 - [lldb/Scripts]

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 30 08:06:24 PDT 2020


Author: Pavel Labath
Date: 2020-06-30T17:06:14+02:00
New Revision: e55a09793d689f42c17f55be861773b6a65751b2

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

LOG: [lldb/Scripts]

Fix analyze-project-deps.py. "lldb/Plugins" (home of Plugins.def) does
not depend on anything. Make sure this does not crash the script.

Added: 
    

Modified: 
    lldb/scripts/analyze-project-deps.py

Removed: 
    


################################################################################
diff  --git a/lldb/scripts/analyze-project-deps.py b/lldb/scripts/analyze-project-deps.py
index c6e3263a2f26..a120260abfe2 100755
--- a/lldb/scripts/analyze-project-deps.py
+++ b/lldb/scripts/analyze-project-deps.py
@@ -109,7 +109,7 @@ def expand(path_queue, path_lengths, cycles, src_map):
         next_len = path_lengths.pop(0) + 1
         last_component = cur_path[-1]
 
-        for item in src_map[last_component]:
+        for item in src_map.get(last_component, []):
             if item.startswith("clang"):
                 continue
 


        


More information about the lldb-commits mailing list