git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216811
91177308-0d34-0410-b5e6-
96231b3b80d8
}
// copy - Allocate copy in Allocator and return StringRef to it.
}
// copy - Allocate copy in Allocator and return StringRef to it.
- template <typename Allocator> StringRef copy(Allocator &A) {
+ template <typename Allocator> StringRef copy(Allocator &A) const {
char *S = A.template Allocate<char>(Length);
std::copy(begin(), end(), S);
return StringRef(S, Length);
char *S = A.template Allocate<char>(Length);
std::copy(begin(), end(), S);
return StringRef(S, Length);