diff options
author | Joe Loser <joeloser@fastmail.com> | 2023-01-15 21:39:16 -0700 |
---|---|---|
committer | Joe Loser <joeloser@fastmail.com> | 2023-01-16 14:49:37 -0700 |
commit | a288d7f937708cf67d960962bfa22ffae37ddbf4 (patch) | |
tree | 25e01a0603227ea89a66ec7bbf02944e3f7689c0 /llvm/lib/Support/Path.cpp | |
parent | ffd3a19e653f9356ec0be65d4e1c38562573f6c7 (diff) | |
download | llvm-a288d7f937708cf67d960962bfa22ffae37ddbf4.zip llvm-a288d7f937708cf67d960962bfa22ffae37ddbf4.tar.gz llvm-a288d7f937708cf67d960962bfa22ffae37ddbf4.tar.bz2 |
[llvm][ADT] Replace uses of `makeMutableArrayRef` with deduction guides
Similar to how `makeArrayRef` is deprecated in favor of deduction guides, do the
same for `makeMutableArrayRef`.
Once all of the places in-tree are using the deduction guides for
`MutableArrayRef`, we can mark `makeMutableArrayRef` as deprecated.
Differential Revision: https://reviews.llvm.org/D141814
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 0ffc07d..152d902 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -1181,7 +1181,7 @@ Error readNativeFileToEOF(file_t FileHandle, SmallVectorImpl<char> &Buffer, for (;;) { Buffer.resize_for_overwrite(Size + ChunkSize); Expected<size_t> ReadBytes = readNativeFile( - FileHandle, makeMutableArrayRef(Buffer.begin() + Size, ChunkSize)); + FileHandle, MutableArrayRef(Buffer.begin() + Size, ChunkSize)); if (!ReadBytes) return ReadBytes.takeError(); if (*ReadBytes == 0) |