projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[asan/coverage] change the way asan coverage instrumentation is done: instead of...
[oota-llvm.git]
/
lib
/
Support
/
StringRef.cpp
diff --git
a/lib/Support/StringRef.cpp
b/lib/Support/StringRef.cpp
index 0da9d5fd3dc52fb96fc763b2dbfa9b7a3af6be54..ddece087a9e7114a1ab8fdaa01eadef9096ebc84 100644
(file)
--- a/
lib/Support/StringRef.cpp
+++ b/
lib/Support/StringRef.cpp
@@
-105,8
+105,8
@@
unsigned StringRef::edit_distance(llvm::StringRef Other,
bool AllowReplacements,
unsigned MaxEditDistance) const {
return llvm::ComputeEditDistance(
bool AllowReplacements,
unsigned MaxEditDistance) const {
return llvm::ComputeEditDistance(
-
llvm::ArrayRef<char>
(data(), size()),
-
llvm::ArrayRef<char>
(Other.data(), Other.size()),
+
makeArrayRef
(data(), size()),
+
makeArrayRef
(Other.data(), Other.size()),
AllowReplacements, MaxEditDistance);
}
AllowReplacements, MaxEditDistance);
}