diff options
author | Kazu Hirata <kazu@google.com> | 2024-05-17 07:30:58 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-05-17 07:30:58 -0700 |
commit | 9b6f0735fbff4e9a51f0c76f5630be649490f6ef (patch) | |
tree | cd884f9311f92e8d1bf92e862fec747aceaeafa2 /llvm/lib/Support/CommandLine.cpp | |
parent | 9ba0a7725680fec5e071634f814a9d32ba33e852 (diff) | |
download | llvm-9b6f0735fbff4e9a51f0c76f5630be649490f6ef.zip llvm-9b6f0735fbff4e9a51f0c76f5630be649490f6ef.tar.gz llvm-9b6f0735fbff4e9a51f0c76f5630be649490f6ef.tar.bz2 |
[Support] Drop nop conversions of StringRef to StringRef (NFC)
Both sides here are known to be of StringRef.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 056340b..8a00d47 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -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) |