diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-06 20:39:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-06 20:39:11 +0000 |
commit | 7ba87f38462dde08e4962936a7612b7869e06c0f (patch) | |
tree | dfd61712f22e97ec6a82780c86bc9e35e65d5ffa /include/clang/Edit | |
parent | 30660a898545416f0fea2d717f16f75640001e38 (diff) | |
download | clang-7ba87f38462dde08e4962936a7612b7869e06c0f.tar.gz |
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.h | 2 |
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); |