Skip to content

Commit

Permalink
Fix -Wparentheses warnings. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbuck committed Apr 21, 2020
1 parent c5d3892 commit 2152935
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Expand Up @@ -859,7 +859,8 @@ foldAndOrOfEqualityCmpsWithConstants(ICmpInst *LHS, ICmpInst *RHS,
Value *InstCombiner::foldAndOrOfICmpsOfAndWithPow2(ICmpInst *LHS, ICmpInst *RHS,
BinaryOperator &Logic) {
bool JoinedByAnd = Logic.getOpcode() == Instruction::And;
assert(JoinedByAnd || Logic.getOpcode() == Instruction::Or && "Wrong opcode");
assert((JoinedByAnd || Logic.getOpcode() == Instruction::Or) &&
"Wrong opcode");
ICmpInst::Predicate Pred = LHS->getPredicate();
if (Pred != RHS->getPredicate())
return nullptr;
Expand Down

0 comments on commit 2152935

Please sign in to comment.