mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
PatternMatch.h - wrap WrapFlags tests inside brackets to stop static analysis warning about & vs && usage. NFCI.
This commit is contained in:
parent
3c794463b4
commit
e1a45194ff
@ -1168,10 +1168,10 @@ struct OverflowingBinaryOp_match {
|
|||||||
if (auto *Op = dyn_cast<OverflowingBinaryOperator>(V)) {
|
if (auto *Op = dyn_cast<OverflowingBinaryOperator>(V)) {
|
||||||
if (Op->getOpcode() != Opcode)
|
if (Op->getOpcode() != Opcode)
|
||||||
return false;
|
return false;
|
||||||
if (WrapFlags & OverflowingBinaryOperator::NoUnsignedWrap &&
|
if ((WrapFlags & OverflowingBinaryOperator::NoUnsignedWrap) &&
|
||||||
!Op->hasNoUnsignedWrap())
|
!Op->hasNoUnsignedWrap())
|
||||||
return false;
|
return false;
|
||||||
if (WrapFlags & OverflowingBinaryOperator::NoSignedWrap &&
|
if ((WrapFlags & OverflowingBinaryOperator::NoSignedWrap) &&
|
||||||
!Op->hasNoSignedWrap())
|
!Op->hasNoSignedWrap())
|
||||||
return false;
|
return false;
|
||||||
return L.match(Op->getOperand(0)) && R.match(Op->getOperand(1));
|
return L.match(Op->getOperand(0)) && R.match(Op->getOperand(1));
|
||||||
|
Loading…
Reference in New Issue
Block a user