Use a more explicit type for the sizeof.

llvm-svn: 287895
This commit is contained in:
Rafael Espindola 2016-11-24 16:38:35 +00:00
parent 81cb4b7103
commit 4862ae8cc5
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ template <class ELFT> void MipsOptionsSection<ELFT>::writeTo(uint8_t *Buf) {
if (!Config->Relocatable)
Reginfo.ri_gp_value = In<ELFT>::MipsGot->getGp();
memcpy(Buf + sizeof(typename ELFT::uint), &Reginfo, sizeof(Reginfo));
memcpy(Buf + sizeof(Elf_Mips_Options), &Reginfo, sizeof(Reginfo));
}
template <class ELFT>