Skip to content

Commit b9dc764

Browse files
[ScanDependencies] Fix a bug when multiple macro dependencies are found
Fix a bug that the index is not incremented in the loop, causing malformed swift dependencies graph when more than one macro dependency is found inside one module.
1 parent 97bc7c2 commit b9dc764

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/DependencyScan/ScanDependencies.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ static swiftscan_macro_dependency_set_t *createMacroDependencySet(
629629
create_clone(entry.second.LibraryPath.c_str());
630630
set->macro_dependencies[SI]->executablePath =
631631
create_clone(entry.second.ExecutablePath.c_str());
632+
++ SI;
632633
}
633634
return set;
634635
}

0 commit comments

Comments
 (0)