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:
@@ -295,7 +295,7 @@ swiftparse_client_node_t SynParser::parse(const char *source) {
|
||||
PU.getParser().State->PerformConditionEvaluation = false;
|
||||
std::unique_ptr<SynParserDiagConsumer> pConsumer;
|
||||
if (DiagHandler) {
|
||||
pConsumer = llvm::make_unique<SynParserDiagConsumer>(*this, bufID);
|
||||
pConsumer = std::make_unique<SynParserDiagConsumer>(*this, bufID);
|
||||
PU.getDiagnosticEngine().addConsumer(*pConsumer);
|
||||
}
|
||||
return PU.parse();
|
||||
|
||||
Reference in New Issue
Block a user