mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances in the swift repo.
This commit is contained in:
@@ -790,7 +790,7 @@ int doDeserializeRawTree(const char *MainExecutablePath,
|
||||
|
||||
auto Buffer = llvm::MemoryBuffer::getFile(InputFile);
|
||||
std::error_code errorCode;
|
||||
auto os = llvm::make_unique<llvm::raw_fd_ostream>(
|
||||
auto os = std::make_unique<llvm::raw_fd_ostream>(
|
||||
OutputFileName, errorCode, llvm::sys::fs::F_None);
|
||||
swift::json::SyntaxDeserializer deserializer(llvm::MemoryBufferRef(*(Buffer.get())));
|
||||
deserializer.getSourceFileSyntax()->print(*os);
|
||||
|
||||
Reference in New Issue
Block a user