summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2018-11-08 19:57:59 +0000
committerJorge Gorbe Moya <jgorbe@google.com>2018-11-08 19:57:59 +0000
commitd17315d89885236c1409bec0311a55f62a8ceda1 (patch)
tree991a4e37e24b95def4917b97729a44ad6943880b /llvm/lib/CodeGen
parent0b01062dba37bad1502cd73062fc6e334c2b33bc (diff)
downloadbcm5719-llvm-d17315d89885236c1409bec0311a55f62a8ceda1.tar.gz
bcm5719-llvm-d17315d89885236c1409bec0311a55f62a8ceda1.zip
[lldb] Fix initialization order warnings.
Moved the declaration of m_kind below the declaration of cvclass, cvunion and cvenum. This order is necessary because in one of the constructors the initialization of m_kind depends on the value of cvclass. third_party/llvm/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp:50:7: error: field 'cvclass' will be initialized after field 'm_kind' [-Werror,-Wreorder] : cvclass(std::move(c)), ^ third_party/llvm/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp:51:14: error: field 'cvclass' is uninitialized when used here [-Werror,-Wuninitialized] m_kind(cvclass.Kind == TypeRecordKind::Struct ? Struct : Class) {} llvm-svn: 346435
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud