forked from OSchip/llvm-project
parent
8c7b93f7e3
commit
4d2997f25d
|
@ -91,7 +91,7 @@ static inline bool isConstantAllOnes(const Value *V) {
|
|||
bool BinaryOperator::isNeg(const Value *V) {
|
||||
if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V))
|
||||
return Bop->getOpcode() == Instruction::Sub &&
|
||||
isa<Constant>(Bop->getOperand(0)) && cast<Constant>(V)->isNullValue();
|
||||
Bop->getOperand(0) == Constant::getNullValue(Bop->getType());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue