[llvm] 2152935 - Fix `-Wparentheses` warnings. NFC.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 12:03:17 PDT 2020


Author: Michael Liao
Date: 2020-04-21T15:02:59-04:00
New Revision: 21529355e1badca663daee65519eb3e56a8164f1

URL: https://github.com/llvm/llvm-project/commit/21529355e1badca663daee65519eb3e56a8164f1
DIFF: https://github.com/llvm/llvm-project/commit/21529355e1badca663daee65519eb3e56a8164f1.diff

LOG: Fix `-Wparentheses` warnings. NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 42e1a2ede7c0..fd325bb9698d 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -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;


        


More information about the llvm-commits mailing list