mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Fix a case where a kext module was being added to the Target
twice. llvm-svn: 175496
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user