1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

big endian systems shift by bits too, hopefully this will fix the ppc

bootstrap problems.

llvm-svn: 82464
This commit is contained in:
Chris Lattner 2009-09-21 17:55:47 +00:00
parent 3359b05815
commit 1d9ca20bf5

View File

@ -1202,7 +1202,7 @@ static Value *GetStoreValueForLoad(Value *SrcVal, unsigned Offset,
if (TD.isLittleEndian()) {
ShiftAmt = Offset*8;
} else {
ShiftAmt = StoreSize-LoadSize-Offset;
ShiftAmt = (StoreSize-LoadSize-Offset)*8;
}
if (ShiftAmt)