From c88d6d402ae0241f3d1f60b9e312b9a73f5bff58 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 1 Jul 2011 16:59:30 +0000 Subject: Eliminate one extra conversion. llvm-svn: 134240 --- llvm/lib/MC/SubtargetFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/MC/SubtargetFeature.cpp') diff --git a/llvm/lib/MC/SubtargetFeature.cpp b/llvm/lib/MC/SubtargetFeature.cpp index d72c346eea6..b9caece4749 100644 --- a/llvm/lib/MC/SubtargetFeature.cpp +++ b/llvm/lib/MC/SubtargetFeature.cpp @@ -128,7 +128,7 @@ template 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; } -- cgit v1.2.3