mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-25 10:38:44 +00:00
Eliminate one extra conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed5bc470aa
commit
4d9af61a48
@ -128,7 +128,7 @@ template<typename T> const T *Find(const StringRef S, const T *A, size_t L) {
|
|||||||
// Binary search the array
|
// Binary search the array
|
||||||
const T *F = std::lower_bound(A, Hi, KV);
|
const T *F = std::lower_bound(A, Hi, KV);
|
||||||
// If not found then return NULL
|
// If not found then return NULL
|
||||||
if (F == Hi || std::string(F->Key) != S) return NULL;
|
if (F == Hi || StringRef(F->Key) != S) return NULL;
|
||||||
// Return the found array item
|
// Return the found array item
|
||||||
return F;
|
return F;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user