mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
DepScanner/ModuleInterface: fix a memory issue when passing down -serialized-path-obfuscate to interface building commands
rdar://88511163
This commit is contained in:
@@ -1347,8 +1347,9 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
|
|||||||
SearchPathOpts.DeserializedPathRecoverer);
|
SearchPathOpts.DeserializedPathRecoverer);
|
||||||
SearchPathOpts.DeserializedPathRecoverer
|
SearchPathOpts.DeserializedPathRecoverer
|
||||||
.forEachPair([&](StringRef lhs, StringRef rhs) {
|
.forEachPair([&](StringRef lhs, StringRef rhs) {
|
||||||
GenericArgs.push_back(ArgSaver.save(llvm::Twine("-serialized-path-obfuscate ")
|
GenericArgs.push_back("-serialized-path-obfuscate");
|
||||||
+ lhs + "=" + rhs).str());
|
std::string pair = (llvm::Twine(lhs) + "=" + rhs).str();
|
||||||
|
GenericArgs.push_back(ArgSaver.save(pair));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user