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

bootstrap problems.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-09-21 17:55:47 +00:00
parent 471fbf9949
commit 19ad784dac

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)