diff options
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) |