Use StringRef::min instead of std::min.