Just use memcpy directly, uninitialized_copy requires an <algorithm> include.
Newer libstdc++s don't include it transitively everywhere. llvm-svn: 152142
This commit is contained in:
parent
f7639e1b4a
commit
ce80ce5fd8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue