[llvm-commits] [llvm] r134240 - /llvm/trunk/lib/MC/SubtargetFeature.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jul 1 09:59:30 PDT 2011
Author: evancheng
Date: Fri Jul 1 11:59:30 2011
New Revision: 134240
URL: http://llvm.org/viewvc/llvm-project?rev=134240&view=rev
Log:
Eliminate one extra conversion.
Modified:
llvm/trunk/lib/MC/SubtargetFeature.cpp
Modified: llvm/trunk/lib/MC/SubtargetFeature.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/SubtargetFeature.cpp?rev=134240&r1=134239&r2=134240&view=diff
==============================================================================
--- llvm/trunk/lib/MC/SubtargetFeature.cpp (original)
+++ llvm/trunk/lib/MC/SubtargetFeature.cpp Fri Jul 1 11:59:30 2011
@@ -128,7 +128,7 @@
// 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;
}
More information about the llvm-commits
mailing list