mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -23,7 +23,7 @@ SILLoopAnalysis::newFunctionAnalysis(SILFunction *F) {
|
||||
assert(DA != nullptr && "Expect a valid dominance analysis");
|
||||
DominanceInfo *DT = DA->get(F);
|
||||
assert(DT != nullptr && "Expect a valid dominance information");
|
||||
return llvm::make_unique<SILLoopInfo>(F, DT);
|
||||
return std::make_unique<SILLoopInfo>(F, DT);
|
||||
}
|
||||
|
||||
void SILLoopAnalysis::initialize(SILPassManager *PM) {
|
||||
|
||||
Reference in New Issue
Block a user