diff --git a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp index 90541da549c674..b17d263d76d3b8 100644 --- a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp +++ b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp @@ -152,7 +152,7 @@ bool lldb_private::formatters::NSTimeZoneSummaryProvider( } ValueObject &time_zone = dyn_valobj_sp ? *dyn_valobj_sp : valobj; - llvm::ArrayRef identifier_path = { + llvm::SmallVector identifier_path = { "some", "timeZone", "_timeZone", "some", "identifier"}; if (auto identifier_sp = time_zone.GetChildAtNamePath(identifier_path)) { std::string desc;