llvm.org GIT mirror llvm / 23e2653
Add missing const to StringRef.copy() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216811 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Kledzik 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
117117 }
118118
119119 // copy - Allocate copy in Allocator and return StringRef to it.
120 template StringRef copy(Allocator &A) {
120 template StringRef copy(Allocator &A) const {
121121 char *S = A.template Allocate(Length);
122122 std::copy(begin(), end(), S);
123123 return StringRef(S, Length);