[Lldb-commits] [lldb] r280965 - Fix MSVC error from r280919

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 8 09:58:31 PDT 2016


Author: labath
Date: Thu Sep  8 11:58:30 2016
New Revision: 280965

URL: http://llvm.org/viewvc/llvm-project?rev=280965&view=rev
Log:
Fix MSVC error from r280919

MSVC did not understand my brace-initializer syntax. :/

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=280965&r1=280964&r2=280965&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Thu Sep  8 11:58:30 2016
@@ -4055,11 +4055,11 @@ void ProcessGDBRemote::PrefetchModuleSpe
   auto module_specs = m_gdb_comm.GetModulesInfo(module_file_specs, triple);
   if (module_specs) {
     for (const FileSpec &spec : module_file_specs)
-      m_cached_module_specs[{spec.GetPath(), triple.getTriple()}] =
-          ModuleSpec();
+      m_cached_module_specs[ModuleCacheKey(spec.GetPath(),
+                                           triple.getTriple())] = ModuleSpec();
     for (const ModuleSpec &spec : *module_specs)
-      m_cached_module_specs[{spec.GetFileSpec().GetPath(),
-                             triple.getTriple()}] = spec;
+      m_cached_module_specs[ModuleCacheKey(spec.GetFileSpec().GetPath(),
+                                           triple.getTriple())] = spec;
   }
 }
 




More information about the lldb-commits mailing list