From 7ba87f38462dde08e4962936a7612b7869e06c0f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 6 Mar 2012 20:39:11 +0000 Subject: [PATCH] Just use memcpy directly, uninitialized_copy requires an 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 --- include/clang/Edit/EditedSource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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); -- 2.50.1