Skip to content

Commit 9e2d7ca

Browse files
committed
[outputfilemap] Fix another StringRef -> std::string conversion
This fix affects master-next, but it's safe to put on master.
1 parent f6662a8 commit 9e2d7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Basic/OutputFileMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ OutputFileMap::parse(std::unique_ptr<llvm::MemoryBuffer> Buffer,
232232

233233
llvm::SmallString<128> PathStorage;
234234
OutputMap.insert(std::pair<file_types::ID, std::string>(
235-
Kind, resolvePath(Path, PathStorage)));
235+
Kind, resolvePath(Path, PathStorage).str()));
236236

237237
// HACK: fake up an SwiftRanges & CompiledSource output filenames
238238
if (addEntriesForSourceRangeDependencies &&

0 commit comments

Comments
 (0)