aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index 283dc70..0ffc07d 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -771,7 +771,7 @@ bool remove_dots(SmallVectorImpl<char> &the_path, bool remove_dot_dot,
if (!components.empty()) {
buffer += components[0];
- for (StringRef C : makeArrayRef(components).drop_front()) {
+ for (StringRef C : ArrayRef(components).drop_front()) {
buffer += preferred_separator(style);
buffer += C;
}
@@ -1054,7 +1054,7 @@ ErrorOr<MD5::MD5Result> md5_contents(int FD) {
BytesRead = read(FD, Buf.data(), BufSize);
if (BytesRead <= 0)
break;
- Hash.update(makeArrayRef(Buf.data(), BytesRead));
+ Hash.update(ArrayRef(Buf.data(), BytesRead));
}
if (BytesRead < 0)