Skip to content

Commit 5964d4b

Browse files
committed
DepScanner/ModuleInterface: fix a memory issue when passing down -serialized-path-obfuscate to interface building commands
rdar://88511163
1 parent d7d3fe3 commit 5964d4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,8 +1347,9 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
13471347
SearchPathOpts.DeserializedPathRecoverer);
13481348
SearchPathOpts.DeserializedPathRecoverer
13491349
.forEachPair([&](StringRef lhs, StringRef rhs) {
1350-
GenericArgs.push_back(ArgSaver.save(llvm::Twine("-serialized-path-obfuscate ")
1351-
+ lhs + "=" + rhs).str());
1350+
GenericArgs.push_back("-serialized-path-obfuscate");
1351+
std::string pair = (llvm::Twine(lhs) + "=" + rhs).str();
1352+
GenericArgs.push_back(ArgSaver.save(pair));
13521353
});
13531354
}
13541355

0 commit comments

Comments
 (0)