One more fix to the new API to fix const-correctness.
[oota-llvm.git] / unittests / Support / CommandLineTest.cpp
index 750559341cf80c22b213f1357393113168379731..8e84bd93072352fdd10a17703501224363b0e1a9 100644 (file)
@@ -254,7 +254,8 @@ TEST(CommandLineTest, HideUnrelatedOptionsMulti) {
   cl::opt<int> TestOption2("test-option-2", cl::cat(TestCategory));
   cl::opt<int> TestOption3("test-option-3", cl::cat(TestCategory2));
 
-  cl::OptionCategory *VisibleCategories[] = {&TestCategory, &TestCategory2};
+  const cl::OptionCategory *VisibleCategories[] = {&TestCategory,
+                                                   &TestCategory2};
 
   cl::HideUnrelatedOptions(makeArrayRef(VisibleCategories));