From 8fe53c490a567d3e9337b974057a239477dbe685 Mon Sep 17 00:00:00 2001 From: Tatyana Krasnukha Date: Wed, 26 Sep 2018 18:50:19 +0000 Subject: Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef Differential Revision: https://reviews.llvm.org/D49017 llvm-svn: 343130 --- lldb/source/Interpreter/OptionGroupArchitecture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Interpreter/OptionGroupArchitecture.cpp') diff --git a/lldb/source/Interpreter/OptionGroupArchitecture.cpp b/lldb/source/Interpreter/OptionGroupArchitecture.cpp index bbd69b8f13f..42eafc9872d 100644 --- a/lldb/source/Interpreter/OptionGroupArchitecture.cpp +++ b/lldb/source/Interpreter/OptionGroupArchitecture.cpp @@ -18,9 +18,9 @@ OptionGroupArchitecture::OptionGroupArchitecture() : m_arch_str() {} OptionGroupArchitecture::~OptionGroupArchitecture() {} -static OptionDefinition g_option_table[] = { +static constexpr OptionDefinition g_option_table[] = { {LLDB_OPT_SET_1, false, "arch", 'a', OptionParser::eRequiredArgument, - nullptr, nullptr, 0, eArgTypeArchitecture, + nullptr, {}, 0, eArgTypeArchitecture, "Specify the architecture for the target."}, }; -- cgit v1.2.3