diff options
author | Enrico Granata <egranata@apple.com> | 2015-09-01 22:24:35 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-09-01 22:24:35 +0000 |
commit | b6f8ca152a2de0d9e375d09a8f4da70beb1ddb87 (patch) | |
tree | 4572c31eba4eb1275afdbcafe20b6a9b59953e7e /lldb/source/DataFormatters/FormatManager.cpp | |
parent | 21213a704094c5bb13f45301b49757c0d13d4599 (diff) | |
download | bcm5719-llvm-b6f8ca152a2de0d9e375d09a8f4da70beb1ddb87.tar.gz bcm5719-llvm-b6f8ca152a2de0d9e375d09a8f4da70beb1ddb87.zip |
std::initializer_list is not safe to return from a function, as copies are not guaranteed to extend the lifetime of the underlying storage
llvm-svn: 246597
Diffstat (limited to 'lldb/source/DataFormatters/FormatManager.cpp')
-rw-r--r-- | lldb/source/DataFormatters/FormatManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index 5c39b2a424b..3313dcca72a 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -636,7 +636,7 @@ FormatManager::GetTypeForCache (ValueObject& valobj, return ConstString(); } -static std::initializer_list<lldb::LanguageType> +static std::vector<lldb::LanguageType> GetCandidateLanguages (ValueObject& valobj) { lldb::LanguageType lang_type = valobj.GetObjectRuntimeLanguage(); |