projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98fbc2f
)
fix a crash due to missing parens
author
Chris Lattner
<sabre@nondot.org>
Mon, 16 Jan 2006 19:47:21 +0000
(19:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 16 Jan 2006 19:47:21 +0000
(19:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25363
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 6143e3c1f1f9b9820f93662edf2aa4efde0b129b..2fcf91948465134e1f1e1ce5899422ceb39084ef 100644
(file)
--- 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;