mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix build breaks for master-next against llvm.org.
StringRef conversion to std::string needs to be explicit now.
This commit is contained in:
@@ -33,7 +33,7 @@ static bool emitFileWithContents(StringRef path, StringRef contents,
|
||||
if (llvm::sys::fs::openFileForWrite(path, fd))
|
||||
return true;
|
||||
if (pathOut)
|
||||
*pathOut = path;
|
||||
*pathOut = path.str();
|
||||
llvm::raw_fd_ostream file(fd, /*shouldClose=*/true);
|
||||
file << contents;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user