summaryrefslogtreecommitdiffstats
path: root/include/clang/Edit
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-06 20:39:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-06 20:39:11 +0000
commit7ba87f38462dde08e4962936a7612b7869e06c0f (patch)
treedfd61712f22e97ec6a82780c86bc9e35e65d5ffa /include/clang/Edit
parent30660a898545416f0fea2d717f16f75640001e38 (diff)
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
Diffstat (limited to 'include/clang/Edit')
-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);