mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +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 (Op->getOpcode() != Opcode)
|
||||
return false;
|
||||
if (WrapFlags & OverflowingBinaryOperator::NoUnsignedWrap &&
|
||||
if ((WrapFlags & OverflowingBinaryOperator::NoUnsignedWrap) &&
|
||||
!Op->hasNoUnsignedWrap())
|
||||
return false;
|
||||
if (WrapFlags & OverflowingBinaryOperator::NoSignedWrap &&
|
||||
if ((WrapFlags & OverflowingBinaryOperator::NoSignedWrap) &&
|
||||
!Op->hasNoSignedWrap())
|
||||
return false;
|
||||
return L.match(Op->getOperand(0)) && R.match(Op->getOperand(1));
|
||||
|
Loading…
Reference in New Issue
Block a user