[llvm] 495bb8f - Fix `-Wparentheses` warnings. NFC.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 12:04:23 PDT 2020


Author: Michael Liao
Date: 2020-04-24T15:04:01-04:00
New Revision: 495bb8feb9af12b7df3616115230923d677ed57e

URL: https://github.com/llvm/llvm-project/commit/495bb8feb9af12b7df3616115230923d677ed57e
DIFF: https://github.com/llvm/llvm-project/commit/495bb8feb9af12b7df3616115230923d677ed57e.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 d0af69f47114..6cc6dcdd748a 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -1145,7 +1145,7 @@ static Value *foldAndOrOfICmpsWithConstEq(ICmpInst *Cmp0, ICmpInst *Cmp1,
                                           InstCombiner::BuilderTy &Builder,
                                           const SimplifyQuery &Q) {
   bool IsAnd = Logic.getOpcode() == Instruction::And;
-  assert(IsAnd || Logic.getOpcode() == Instruction::Or && "Wrong logic op");
+  assert((IsAnd || Logic.getOpcode() == Instruction::Or) && "Wrong logic op");
 
   // Match an equality compare with a non-poison constant as Cmp0.
   ICmpInst::Predicate Pred0;


        


More information about the llvm-commits mailing list