Index: source/Breakpoint/BreakpointID.cpp =================================================================== --- source/Breakpoint/BreakpointID.cpp +++ source/Breakpoint/BreakpointID.cpp @@ -26,8 +26,6 @@ BreakpointID::~BreakpointID() = default; -static llvm::StringRef g_range_specifiers[] = {"-", "to", "To", "TO"}; - // Tells whether or not STR is valid to use between two strings representing // breakpoint IDs, to // indicate a range of breakpoint IDs. This is broken out into a separate @@ -35,7 +33,7 @@ // easily change or add to the format for specifying ID ranges at a later date. bool BreakpointID::IsRangeIdentifier(llvm::StringRef str) { - for (auto spec : g_range_specifiers) { + for (auto spec : GetRangeSpecifiers()) { if (spec == str) return true; } @@ -48,6 +46,7 @@ } llvm::ArrayRef BreakpointID::GetRangeSpecifiers() { + static llvm::StringRef g_range_specifiers[] = {"-", "to", "To", "TO"}; return llvm::makeArrayRef(g_range_specifiers); }