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 | 1fe6bfca593404e261922990f230326934dda4d6 (patch) | |
tree | ccde6308896badedc5197a2dc7d49ea8f623a326 | |
parent | aa206ffa6bf160f90d0d3aae5745ae4abf2d98fa (diff) | |
download | external_llvm-1fe6bfca593404e261922990f230326934dda4d6.zip external_llvm-1fe6bfca593404e261922990f230326934dda4d6.tar.gz external_llvm-1fe6bfca593404e261922990f230326934dda4d6.tar.bz2 |
don't use "signed", just something I noticed in patches flying by.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153237 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index d36a18f..4e34868 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/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(); |