forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
9945bd5911
commit
e55a09793d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue