[Support] Drop nop conversions of StringRef to StringRef (NFC)

Both sides here are known to be of StringRef.
This commit is contained in:
Kazu Hirata 2024-05-17 07:30:58 -07:00
parent 9ba0a77256
commit 9b6f0735fb

View File

@ -534,7 +534,7 @@ SubCommand *CommandLineParser::LookupSubCommand(StringRef Name,
if (S->getName().empty())
continue;
if (StringRef(S->getName()) == StringRef(Name))
if (S->getName() == Name)
return S;
if (!NearestMatch && S->getName().edit_distance(Name) < 2)