[FreeBSD] Use a cast sledgehammer to placate newer versions of clang.

Now lldb can build on FreeBSD with -Werror again.

llvm-svn: 256771
This commit is contained in:
Davide Italiano 2016-01-04 19:22:35 +00:00
parent e8e7bfbf16
commit 6bed719775
1 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ ReadRegOperation::Execute(ProcessMonitor *monitor)
else if (m_size == sizeof(uint64_t))
m_value = *(uint64_t *)(((caddr_t)&regs) + m_offset);
else
memcpy(&m_value, (((caddr_t)&regs) + m_offset), m_size);
memcpy((void *)&m_value, (((caddr_t)&regs) + m_offset), m_size);
m_result = true;
}
}
@ -393,7 +393,7 @@ ReadDebugRegOperation::Execute(ProcessMonitor *monitor)
if (m_size == sizeof(uintptr_t))
m_value = *(uintptr_t *)(((caddr_t)&regs) + m_offset);
else
memcpy(&m_value, (((caddr_t)&regs) + m_offset), m_size);
memcpy((void *)&m_value, (((caddr_t)&regs) + m_offset), m_size);
m_result = true;
}
}