aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-06-05 01:07:50 -0700
committerFangrui Song <i@maskray.me>2022-06-05 01:07:51 -0700
commit95a134254a403750ddfee7c056efdf2359a7dc8c (patch)
treec8dd0df169da0845ecf7192873d9049295270ba7 /llvm/unittests/Support/CommandLineTest.cpp
parentd86a206f06a51c12a9fcf2c20199f4e819751c0c (diff)
downloadllvm-95a134254a403750ddfee7c056efdf2359a7dc8c.zip
llvm-95a134254a403750ddfee7c056efdf2359a7dc8c.tar.gz
llvm-95a134254a403750ddfee7c056efdf2359a7dc8c.tar.bz2
Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r--llvm/unittests/Support/CommandLineTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index d853928..ed0dc98 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -1157,7 +1157,7 @@ TEST(CommandLineTest, PositionalEatArgsError) {
cl::PositionalEatsArgs);
StackOption<std::string, cl::list<std::string>> PosEatArgs2(
"positional-eat-args2", cl::Positional, cl::desc("Some strings"),
- cl::ZeroOrMore, cl::PositionalEatsArgs);
+ cl::PositionalEatsArgs);
const char *args[] = {"prog", "-positional-eat-args=XXXX"};
const char *args2[] = {"prog", "-positional-eat-args=XXXX", "-foo"};