diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-08-27 05:25:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-08-27 05:25:25 +0000 |
commit | e1d1294853f88f663639f0d5582eec5b0ad8f9ff (patch) | |
tree | 5bd7b736dc5a2637df5b1cf458986af8e40915ff /llvm/lib/Support/StringRef.cpp | |
parent | 3af97225291fe0c74ece7e15d6b45773a2a60007 (diff) | |
download | bcm5719-llvm-e1d1294853f88f663639f0d5582eec5b0ad8f9ff.tar.gz bcm5719-llvm-e1d1294853f88f663639f0d5582eec5b0ad8f9ff.zip |
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
llvm-svn: 216525
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
-rw-r--r-- | llvm/lib/Support/StringRef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/StringRef.cpp b/llvm/lib/Support/StringRef.cpp index 0da9d5fd3dc..ddece087a9e 100644 --- a/llvm/lib/Support/StringRef.cpp +++ b/llvm/lib/Support/StringRef.cpp @@ -105,8 +105,8 @@ unsigned StringRef::edit_distance(llvm::StringRef Other, 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); } |