diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-03-22 03:46:58 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-03-22 03:46:58 +0000 | 
| commit | 7d7dba3c92b40ead48c1fef6665eaccd8421df99 (patch) | |
| tree | b7b304f82d37a3544f980f091979d490511b8ed5 /llvm/lib/Transforms | |
| parent | 0b472d86de26614f36a23b3327e898fbf3fe02de (diff) | |
| download | bcm5719-llvm-7d7dba3c92b40ead48c1fef6665eaccd8421df99.tar.gz bcm5719-llvm-7d7dba3c92b40ead48c1fef6665eaccd8421df99.zip | |
don't use "signed", just something I noticed in patches flying by.
llvm-svn: 153237
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index d36a18f21c6..4e348687777 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -574,8 +574,8 @@ void ConvertToScalarInfo::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI,      // transform it into a store of the expanded constant value.      if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) {        assert(MSI->getRawDest() == Ptr && "Consistency error!"); -      signed SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue(); -      if (SNumBytes > 0) { +     int64_t SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue(); +      if (SNumBytes > 0 && (SNumBytes >> 32) == 0) {          unsigned NumBytes = static_cast<unsigned>(SNumBytes);          unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue(); | 

