Add missing const to StringRef.copy()

llvm-svn: 216811
This commit is contained in:
Nick Kledzik 2014-08-30 02:29:49 +00:00
parent 302be679bc
commit 38637fb5b7
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ namespace llvm {
}
// 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);