mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 21:31:41 +00:00
Fix for PR1022 (folding loads of static initializers) by Dan Gohman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
625bd052a3
commit
a5a57d66f5
@ -3257,7 +3257,7 @@ static SDOperand getMemsetStringVal(MVT::ValueType VT,
|
||||
if (TLI.isLittleEndian())
|
||||
Offset = Offset + MSB - 1;
|
||||
for (unsigned i = 0; i != MSB; ++i) {
|
||||
Val = (Val << 8) | Str[Offset];
|
||||
Val = (Val << 8) | (unsigned char)Str[Offset];
|
||||
Offset += TLI.isLittleEndian() ? -1 : 1;
|
||||
}
|
||||
return DAG.getConstant(Val, VT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user