Skip to content

Commit

Permalink
Merge pull request #5725 from adrian-prantl/cherry-pick-20221013
Browse files Browse the repository at this point in the history
Use const ref (NFC)
  • Loading branch information
adrian-prantl authored Dec 5, 2022
2 parents 700efe9 + 9627124 commit 8c5838e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ static bool DeserializeAllCompilerFlags(swift::CompilerInvocation &invocation,
found_swift_modules = true;
StringRef moduleData = buf.substr(0, info.bytes);

auto remap = [&](std::string path) {
auto remap = [&](const std::string &path) {
ConstString remapped;
if (module.GetSourceMappingList().RemapPath(ConstString(path),
remapped))
Expand Down

0 comments on commit 8c5838e

Please sign in to comment.