[Lldb-commits] [lldb] r327380 - Fix clang-3.8 build

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 13 02:46:10 PDT 2018


Author: labath
Date: Tue Mar 13 02:46:10 2018
New Revision: 327380

URL: http://llvm.org/viewvc/llvm-project?rev=327380&view=rev
Log:
Fix clang-3.8 build

clang-3.8 complains that constructor for '...' must explicitly
initialize the const member. Newer clangs and gcc seem to be fine with
this, but explicitly initializing the member does not hurt.

Modified:
    lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp

Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp?rev=327380&r1=327379&r2=327380&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp Tue Mar 13 02:46:10 2018
@@ -169,7 +169,7 @@ ClangModulesDeclVendorImpl::ClangModules
     : m_diagnostics_engine(std::move(diagnostics_engine)),
       m_compiler_invocation(std::move(compiler_invocation)),
       m_compiler_instance(std::move(compiler_instance)),
-      m_parser(std::move(parser)) {}
+      m_parser(std::move(parser)), m_origin_map() {}
 
 void ClangModulesDeclVendorImpl::ReportModuleExportsHelper(
     std::set<ClangModulesDeclVendor::ModuleID> &exports,




More information about the lldb-commits mailing list