From: Chris Lattner Date: Mon, 21 Sep 2009 17:55:47 +0000 (+0000) Subject: big endian systems shift by bits too, hopefully this will fix the ppc X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=19ad784dacc10247d47d0928f6222390c60fbb4b;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index b549e803177..a2d210a36f2 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -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)