Include llvm/ADT/STLExtras.h from lldb/Utility/Utils.h and use llvm::array_lengthof(), instead.
llvm-svn: 156876
diff --git a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp
index 7626310..28c31ce 100644
--- a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp
+++ b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp
@@ -49,7 +49,7 @@
uint32_t
OptionGroupValueObjectDisplay::GetNumDefinitions ()
{
- return arraysize(g_option_table);
+ return llvm::array_lengthof(g_option_table);
}
const OptionDefinition *