summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Edit/EditedSource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Edit/EditedSource.h b/clang/include/clang/Edit/EditedSource.h
index 273921cee5e..095ec74c7b9 100644
--- a/clang/include/clang/Edit/EditedSource.h
+++ b/clang/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);
OpenPOWER on IntegriCloud