aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/SubtargetFeature.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-01 16:59:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-01 16:59:30 +0000
commit4d9af61a48639f37f1e0db745b26e4bf9ccdf1a0 (patch)
treee9a6f8174a2bd0ab105433127386543caa05d559 /lib/MC/SubtargetFeature.cpp
parented5bc470aab7097c30e5f881158112f7830472f3 (diff)
downloadexternal_llvm-4d9af61a48639f37f1e0db745b26e4bf9ccdf1a0.zip
external_llvm-4d9af61a48639f37f1e0db745b26e4bf9ccdf1a0.tar.gz
external_llvm-4d9af61a48639f37f1e0db745b26e4bf9ccdf1a0.tar.bz2
Eliminate one extra conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/SubtargetFeature.cpp')
-rw-r--r--lib/MC/SubtargetFeature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp
index d72c346..b9caece 100644
--- a/lib/MC/SubtargetFeature.cpp
+++ b/lib/MC/SubtargetFeature.cpp
@@ -128,7 +128,7 @@ template<typename T> const T *Find(const StringRef S, const T *A, size_t L) {
// Binary search the array
const T *F = std::lower_bound(A, Hi, KV);
// 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 F;
}