Add OpSize16 flags to 32-bit CRC32 instructions so they can be encoded correctly...
[oota-llvm.git] / lib / MC / MCSubtargetInfo.cpp
index ad19921ff9fcaf5566f37a306ee1b9188afb4c24..8d8e2900b678cc919b05a26c3d695b5e5d8abe3b 100644 (file)
@@ -96,10 +96,8 @@ MCSubtargetInfo::getSchedModelForCPU(StringRef CPU) const {
 #endif
 
   // Find entry
-  SubtargetInfoKV KV;
-  KV.Key = CPU.data();
   const SubtargetInfoKV *Found =
-    std::lower_bound(ProcSchedModels, ProcSchedModels+NumProcs, KV);
+    std::lower_bound(ProcSchedModels, ProcSchedModels+NumProcs, CPU);
   if (Found == ProcSchedModels+NumProcs || StringRef(Found->Key) != CPU) {
     errs() << "'" << CPU
            << "' is not a recognized processor for this target"