mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
don't use "signed", just something I noticed in patches flying by.
llvm-svn: 153237
This commit is contained in:
parent
0cbb33ea72
commit
9bb176f16d
@ -574,8 +574,8 @@ void ConvertToScalarInfo::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI,
|
|||||||
// transform it into a store of the expanded constant value.
|
// transform it into a store of the expanded constant value.
|
||||||
if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) {
|
if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) {
|
||||||
assert(MSI->getRawDest() == Ptr && "Consistency error!");
|
assert(MSI->getRawDest() == Ptr && "Consistency error!");
|
||||||
signed SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue();
|
int64_t SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue();
|
||||||
if (SNumBytes > 0) {
|
if (SNumBytes > 0 && (SNumBytes >> 32) == 0) {
|
||||||
unsigned NumBytes = static_cast<unsigned>(SNumBytes);
|
unsigned NumBytes = static_cast<unsigned>(SNumBytes);
|
||||||
unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue();
|
unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user