From 95a134254a403750ddfee7c056efdf2359a7dc8c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 5 Jun 2022 01:07:50 -0700 Subject: Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options --- llvm/unittests/Support/CommandLineTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/Support/CommandLineTest.cpp') 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> 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"}; -- cgit v1.1