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/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp') diff --git a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp index c8cc1511175..0b17d26a317 100644 --- a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp +++ b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp @@ -46,10 +46,10 @@ using namespace lldb_private; namespace { -static PropertyDefinition g_properties[] = { - {"enable", OptionValue::eTypeBoolean, true, true, nullptr, nullptr, +static constexpr PropertyDefinition g_properties[] = { + {"enable", OptionValue::eTypeBoolean, true, true, nullptr, {}, "Specify whether goroutines should be treated as threads."}, - {NULL, OptionValue::eTypeInvalid, false, 0, NULL, NULL, NULL}}; + {nullptr, OptionValue::eTypeInvalid, false, 0, nullptr, {}, nullptr}}; enum { ePropertyEnableGoroutines, -- cgit v1.2.3