Move this debug output into GenerateAllReuseFormula, to declutter
[oota-llvm.git] / lib / Support / StringRef.cpp
index c33ca6a2ebf678357d39951513257483d29e68a2..46f26b242aac36f843234d51d3a36a320ab4d9eb 100644 (file)
@@ -59,7 +59,7 @@ int StringRef::compare_numeric(StringRef RHS) const {
           break;
       }
     }
-    return Data[I] < RHS.Data[I] ? -1 : 1;
+    return (unsigned char)Data[I] < (unsigned char)RHS.Data[I] ? -1 : 1;
   }
   if (Length == RHS.Length)
     return 0;