summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-01-27 00:42:00 +0000
committerChris Bieneman <beanz@apple.com>2015-01-27 00:42:00 +0000
commitfd3dbd940393ecfe9e7784664a1d189fa927aec8 (patch)
treef24e169d8e81e51b64b347817804efe0902d9470 /llvm/unittests/Support/CommandLineTest.cpp
parent199e7c125e5479968e9608c6318c391ff54ee2e4 (diff)
downloadbcm5719-llvm-fd3dbd940393ecfe9e7784664a1d189fa927aec8.tar.gz
bcm5719-llvm-fd3dbd940393ecfe9e7784664a1d189fa927aec8.zip
One more fix to the new API to fix const-correctness.
llvm-svn: 227154
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r--llvm/unittests/Support/CommandLineTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index 750559341cf..8e84bd93072 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -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));
OpenPOWER on IntegriCloud