OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbf47c2
)
Add missing const to StringRef.copy()
author
Nick Kledzik
<kledzik@apple.com>
Sat, 30 Aug 2014 02:29:49 +0000
(
02:29
+0000)
committer
Nick Kledzik
<kledzik@apple.com>
Sat, 30 Aug 2014 02:29:49 +0000
(
02:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216811
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/StringRef.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/StringRef.h
b/include/llvm/ADT/StringRef.h
index
390e7f7
..
f1861c8
100644
(file)
--- a/
include/llvm/ADT/StringRef.h
+++ b/
include/llvm/ADT/StringRef.h
@@
-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);