Fix a case where a kext module was being added to the Target

twice.

llvm-svn: 175496
This commit is contained in:
Jason Molenda
2013-02-19 07:41:13 +00:00
parent d76fb6ea12
commit a4d3e1d2a2

View File

@@ -811,7 +811,7 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p
}
if (uuid_match_ok)
{
target.GetImages().Append(m_module_sp);
target.GetImages().AppendIfNeeded(m_module_sp);
if (IsKernel() && target.GetExecutableModulePointer() != m_module_sp.get())
{
target.SetExecutableModule (m_module_sp, false);