[Support] Drop nop conversions of StringRef to StringRef (NFC)
Both sides here are known to be of StringRef.
This commit is contained in:
parent
9ba0a77256
commit
9b6f0735fb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user