Just use memcpy directly, uninitialized_copy requires an <algorithm> include.
Newer libstdc++s don't include it transitively everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152142 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Edit/EditedSource.h b/include/clang/Edit/EditedSource.h
index 273921c..095ec74 100644
--- a/include/clang/Edit/EditedSource.h
+++ b/include/clang/Edit/EditedSource.h
@@ -62,7 +62,7 @@
StringRef copyString(StringRef str) {
char *buf = StrAlloc.Allocate<char>(str.size());
- std::uninitialized_copy(str.begin(), str.end(), buf);
+ std::memcpy(buf, str.data(), str.size());
return StringRef(buf, str.size());
}
StringRef copyString(const Twine &twine);