mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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
|
||||
.forEachPair([&](StringRef lhs, StringRef rhs) {
|
||||
GenericArgs.push_back(ArgSaver.save(llvm::Twine("-serialized-path-obfuscate ")
|
||||
+ lhs + "=" + rhs).str());
|
||||
GenericArgs.push_back("-serialized-path-obfuscate");
|
||||
std::string pair = (llvm::Twine(lhs) + "=" + rhs).str();
|
||||
GenericArgs.push_back(ArgSaver.save(pair));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user