Author: enrico Date: Tue Sep 1 17:24:35 2015 New Revision: 246597 URL: http://llvm.org/viewvc/llvm-project?rev=246597&view=rev Log: std::initializer_list is not safe to return from a function, as copies are not guaranteed to extend the lifetime of the underlying storage
Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=246597&r1=246596&r2=246597&view=diff ============================================================================== --- lldb/trunk/source/DataFormatters/FormatManager.cpp (original) +++ lldb/trunk/source/DataFormatters/FormatManager.cpp Tue Sep 1 17:24:35 2015 @@ -636,7 +636,7 @@ FormatManager::GetTypeForCache (ValueObj return ConstString(); } -static std::initializer_list<lldb::LanguageType> +static std::vector<lldb::LanguageType> GetCandidateLanguages (ValueObject& valobj) { lldb::LanguageType lang_type = valobj.GetObjectRuntimeLanguage(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits