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
 


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to