Fix mac build broken in r316987
authorPavel Labath <labath@google.com>
Tue, 31 Oct 2017 11:48:33 +0000 (11:48 +0000)
committerPavel Labath <labath@google.com>
Tue, 31 Oct 2017 11:48:33 +0000 (11:48 +0000)
Forgot one occurence of ArchSpec::SetTriple in mac-specific code.

llvm-svn: 316990

lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp

index a617850..d21651b 100644 (file)
@@ -468,7 +468,7 @@ Status ProcessMachCore::DoLoadCore() {
   // it to match the core file which is always single arch.
   ArchSpec arch(m_core_module_sp->GetArchitecture());
   if (arch.GetCore() == ArchSpec::eCore_x86_32_i486) {
-    arch.SetTriple("i386", GetTarget().GetPlatform().get());
+    arch = Platform::GetAugmentedArchSpec(GetTarget().GetPlatform().get(), "i386");
   }
   if (arch.IsValid())
     GetTarget().SetArchitecture(arch);