diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-01-16 19:47:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-01-16 19:47:21 +0000 |
| commit | 307b7ea15f31cb9984c96ac132b565acf71e5661 (patch) | |
| tree | a444d2e084a3e45c89fae4fe77644cfc5075e00e /llvm/lib | |
| parent | 7c7629003820ce06193b856f55decec42eef86ba (diff) | |
| download | bcm5719-llvm-307b7ea15f31cb9984c96ac132b565acf71e5661.tar.gz bcm5719-llvm-307b7ea15f31cb9984c96ac132b565acf71e5661.zip | |
fix a crash due to missing parens
llvm-svn: 25363
Diffstat (limited to 'llvm/lib')
| -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; |

