aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Edit/EditedSource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Edit/EditedSource.h b/include/clang/Edit/EditedSource.h
index 273921cee5..095ec74c7b 100644
--- a/include/clang/Edit/EditedSource.h
+++ b/include/clang/Edit/EditedSource.h
@@ -62,7 +62,7 @@ public:
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);