mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use the new template deduction guides rather than makeArrayRef
LLVM has removed `make*ArrayRef`, migrate all references to their constructor equivalent.
This commit is contained in:
@@ -648,8 +648,7 @@ void ModuleFileSharedCore::allocateBuffer(MutableArrayRef<T> &buffer,
|
||||
return;
|
||||
|
||||
void *rawBuffer = Allocator.Allocate(sizeof(T) * rawData.size(), alignof(T));
|
||||
buffer = llvm::makeMutableArrayRef(static_cast<T *>(rawBuffer),
|
||||
rawData.size());
|
||||
buffer = llvm::MutableArrayRef(static_cast<T *>(rawBuffer), rawData.size());
|
||||
std::uninitialized_copy(rawData.begin(), rawData.end(), buffer.begin());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user