summaryrefslogtreecommitdiff
path: root/llvm/lib/Option/ArgList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Option/ArgList.cpp')
-rw-r--r--llvm/lib/Option/ArgList.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Option/ArgList.cpp b/llvm/lib/Option/ArgList.cpp
index 2f4e21257af0..9f9d63f212c8 100644
--- a/llvm/lib/Option/ArgList.cpp
+++ b/llvm/lib/Option/ArgList.cpp
@@ -230,10 +230,8 @@ StringRef ArgList::getSubCommand(
HandleMultipleSubcommands(SubCommands);
return {};
}
- if (!OtherPositionals.empty()) {
+ if (!OtherPositionals.empty())
HandleOtherPositionals(OtherPositionals);
- return {};
- }
if (SubCommands.size() == 1)
return SubCommands.front();