diff options
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r-- | lldb/source/Interpreter/Options.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp index 90eb66c1a55..410efc669ff 100644 --- a/lldb/source/Interpreter/Options.cpp +++ b/lldb/source/Interpreter/Options.cpp @@ -285,7 +285,10 @@ Options::GetLongOptions () m_getopt_table[j].val = 0; } - return m_getopt_table.data(); + if (m_getopt_table.empty()) + return NULL; + + return &m_getopt_table.front(); } |