Fix this on 32 bit hosts.

Looks like we have no 32 bit bot that builds with mips support.

llvm-svn: 287799
This commit is contained in:
Rafael Espindola 2016-11-23 19:16:20 +00:00
parent 4056253c4d
commit 20b6d3d0d3
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->getVA() + MipsGPOffset;
memcpy(Buf + sizeof(Options), &Reginfo, sizeof(Reginfo));
memcpy(Buf + sizeof(typename ELFT::uint), &Reginfo, sizeof(Reginfo));
}
template <class ELFT>