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:
Ben Barham
2024-02-23 20:00:08 -08:00
parent b4a5ad2f4d
commit f292ec9784
122 changed files with 305 additions and 360 deletions

View File

@@ -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());
}