Pacify GCC, which worries about falling off the end of the switch.
[oota-llvm.git] / lib / MC / SubtargetFeature.cpp
index 378c4184a834c04aa63c6b61682ad04047ce8fea..7625abd465fa10277583c32a66046808e14d50e7 100644 (file)
@@ -119,8 +119,8 @@ void SubtargetFeatures::AddFeature(const StringRef String,
 }
 
 /// Find KV in array using binary search.
-const SubtargetFeatureKV *Find(const StringRef S, const SubtargetFeatureKV *A,
-                               size_t L) {
+static const SubtargetFeatureKV *Find(StringRef S, const SubtargetFeatureKV *A,
+                                      size_t L) {
   // Make the lower bound element we're looking for
   SubtargetFeatureKV KV;
   KV.Key = S.data();