aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-16 19:47:21 +0000
committerChris Lattner <sabre@nondot.org>2006-01-16 19:47:21 +0000
commit72223eea95d1ef1c77a6aeb5134e184601db27bb (patch)
treed5e0368ed5d4a214fcbd05b383afb5d2f26ddb55 /lib
parent98fbc2fd1b4976923a81accff6ec19afdd7c42ab (diff)
downloadexternal_llvm-72223eea95d1ef1c77a6aeb5134e184601db27bb.zip
external_llvm-72223eea95d1ef1c77a6aeb5134e184601db27bb.tar.gz
external_llvm-72223eea95d1ef1c77a6aeb5134e184601db27bb.tar.bz2
fix a crash due to missing parens
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 6143e3c..2fcf919 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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;