From: Aaron Ballman Date: Wed, 13 Aug 2014 10:49:07 +0000 (+0000) Subject: Silence a -Wparenthesis warning with these asserts. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b77c00bbf62d42c7a0651e36ea3cc8317f5d404;p=llvm Silence a -Wparenthesis warning with these asserts. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215537 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 98eedb8ec6e..69da614bfc7 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -7353,9 +7353,9 @@ static SDValue lowerV8I16SingleInputVectorShuffle( auto balanceSides = [&](ArrayRef AToAInputs, ArrayRef BToAInputs, ArrayRef BToBInputs, ArrayRef AToBInputs, int AOffset, int BOffset) { - assert(AToAInputs.size() == 3 || AToAInputs.size() == 1 && + assert((AToAInputs.size() == 3 || AToAInputs.size() == 1) && "Must call this with A having 3 or 1 inputs from the A half."); - assert(BToAInputs.size() == 1 || BToAInputs.size() == 3 && + assert((BToAInputs.size() == 1 || BToAInputs.size() == 3) && "Must call this with B having 1 or 3 inputs from the B half."); assert(AToAInputs.size() + BToAInputs.size() == 4 && "Must call this with either 3:1 or 1:3 inputs (summing to 4).");