[llvm-branch-commits] [llvm] 1a86a5b - Update CommandLineTest.cpp

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Nov 10 13:09:18 PST 2023


Author: Mingming Liu
Date: 2023-11-10T13:09:14-08:00
New Revision: 1a86a5b4493f558b6d4e50aaea46d64539426aa2

URL: https://github.com/llvm/llvm-project/commit/1a86a5b4493f558b6d4e50aaea46d64539426aa2
DIFF: https://github.com/llvm/llvm-project/commit/1a86a5b4493f558b6d4e50aaea46d64539426aa2.diff

LOG: Update CommandLineTest.cpp

Added: 
    

Modified: 
    llvm/unittests/Support/CommandLineTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index 4411ed0f83928ad..b6542363dc61e3b 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -538,7 +538,7 @@ TEST(CommandLineTest, TopLevelOptInSubcommand) {
   // A command line using subcommand should parse both subcommand options and
   // top-level options.  A valid use case is that users of llvm command line
   // tools should be able to specify top-level options defined in any library.
-  cl::opt<std::string> TopLevelOpt("str", cl::init("txt"),
+  StackOption<std::string> TopLevelOpt("str", cl::init("txt"),
                                    cl::desc("A top-level option."));
 
   StackSubCommand SC("sc", "Subcommand");


        


More information about the llvm-branch-commits mailing list