From 495bb8feb9af12b7df3616115230923d677ed57e Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Fri, 24 Apr 2020 15:03:48 -0400 Subject: [PATCH] Fix `-Wparentheses` warnings. NFC. --- llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index d0af69f..6cc6dcd 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; -- 2.7.4