diff options
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 6143e3c1f1f..2fcf9194846 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -748,7 +748,7 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) {              // This is a sign extend if the top bits are known zero.              Constant *Mask = ConstantInt::getAllOnesValue(XorLHS->getType());              Mask = ConstantExpr::getShl(Mask,  -                           ConstantInt::get(Type::UByteTy, 64-TySizeBits-Size)); +                         ConstantInt::get(Type::UByteTy, 64-(TySizeBits-Size)));              if (!MaskedValueIsZero(XorLHS, cast<ConstantInt>(Mask)))                Size = 0;  // Not a sign ext, but can't be any others either.              goto FoundSExt; | 

