mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
fix a crash due to missing parens
llvm-svn: 25363
This commit is contained in:
parent
88572bb5c4
commit
12d9016774
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user