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:
@@ -372,7 +372,7 @@ class COWArrayOpt {
|
||||
// Keep track of cold blocks.
|
||||
ColdBlockInfo ColdBlocks;
|
||||
|
||||
// Cache of the analysis whether a loop is safe wrt. make_unique hoisting by
|
||||
// Cache of the analysis whether a loop is safe wrt.std::make_unique hoisting by
|
||||
// looking at the operations (no uniquely identified objects).
|
||||
std::pair<bool, bool> CachedSafeLoop;
|
||||
|
||||
@@ -835,7 +835,7 @@ bool COWArrayOpt::checkSafeElementValueUses(UserOperList &ElementValueUsers) {
|
||||
/// * all array semantic functions
|
||||
/// * stores to array elements
|
||||
/// * any instruction that does not have side effects.
|
||||
/// * any retain must be matched by a release before we hit a make_unique.
|
||||
/// * any retain must be matched by a release before we hit astd::make_unique.
|
||||
///
|
||||
/// Note, that a release in this modus (we don't have a uniquely identified
|
||||
/// object) is not safe because the destructor of what we are releasing might
|
||||
|
||||
Reference in New Issue
Block a user