Skip to content

Commit 9b6f073

Browse files
[Support] Drop nop conversions of StringRef to StringRef (NFC)
Both sides here are known to be of StringRef.
1 parent 9ba0a77 commit 9b6f073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/CommandLine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ SubCommand *CommandLineParser::LookupSubCommand(StringRef Name,
534534
if (S->getName().empty())
535535
continue;
536536

537-
if (StringRef(S->getName()) == StringRef(Name))
537+
if (S->getName() == Name)
538538
return S;
539539

540540
if (!NearestMatch && S->getName().edit_distance(Name) < 2)

0 commit comments

Comments
 (0)