mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ScanDependencies] Fix a memory leak in dependency graph
Fix a memory leak from https://github.com/swiftlang/swift/pull/75134.
This commit is contained in:
@@ -247,7 +247,7 @@ static void
|
||||
writeMacroDependencies(llvm::raw_ostream &out,
|
||||
const swiftscan_macro_dependency_set_t *macro_deps,
|
||||
unsigned indentLevel, bool trailingComma) {
|
||||
if (macro_deps->count == 0)
|
||||
if (!macro_deps)
|
||||
return;
|
||||
|
||||
out.indent(indentLevel * 2);
|
||||
|
||||
Reference in New Issue
Block a user