aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 08:54:23 -0700
committerGitHub <noreply@github.com>2024-08-04 08:54:23 -0700
commit7df9da7d780f1ece175020c5aef44b4b06df05b7 (patch)
tree6592badbd9bbc7ca877249d16f5685d6e6b34129 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent2e9d2f183f1c4e458201d05e4dea96249f8a8f65 (diff)
downloadllvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.zip
llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.gz
llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.bz2
[llvm] Construct SmallVector with ArrayRef (NFC) (#101872)
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
-rw-r--r--llvm/unittests/Support/VirtualFileSystemTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index 9e9b4fb..d4717ce 100644
--- a/llvm/unittests/Support/VirtualFileSystemTest.cpp
+++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp
@@ -766,7 +766,7 @@ TEST(VirtualFileSystemTest, BrokenSymlinkRealFSRecursiveIteration) {
template <typename DirIter>
static void checkContents(DirIter I, ArrayRef<StringRef> ExpectedOut) {
std::error_code EC;
- SmallVector<StringRef, 4> Expected(ExpectedOut.begin(), ExpectedOut.end());
+ SmallVector<StringRef, 4> Expected(ExpectedOut);
SmallVector<std::string, 4> InputToCheck;
// Do not rely on iteration order to check for contents, sort both