diff --git a/lldb/include/lldb/Breakpoint/BreakpointOptions.h b/lldb/include/lldb/Breakpoint/BreakpointOptions.h index 791c66c81b6f..3c9bea9efd5b 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointOptions.h +++ b/lldb/include/lldb/Breakpoint/BreakpointOptions.h @@ -368,7 +368,7 @@ protected: }; static const char *g_option_names[(size_t) OptionNames::LastOptionName]; - static const char *GetKey(enum OptionNames enum_value) { + static const char *GetKey(OptionNames enum_value) { return g_option_names[(size_t) enum_value]; } diff --git a/lldb/include/lldb/Target/ThreadSpec.h b/lldb/include/lldb/Target/ThreadSpec.h index 7b22c2835ff7..204f1f9fbd70 100644 --- a/lldb/include/lldb/Target/ThreadSpec.h +++ b/lldb/include/lldb/Target/ThreadSpec.h @@ -123,7 +123,7 @@ private: }; static const char *g_option_names[(size_t)OptionNames::LastOptionName]; - static const char *GetKey(enum OptionNames enum_value) { + static const char *GetKey(OptionNames enum_value) { return g_option_names[(size_t) enum_value]; }