From: Simon Pilgrim Date: Fri, 25 Jan 2019 11:34:58 +0000 (+0000) Subject: Fix gcc -Wparentheses warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c27afeb9e6fcc34af41ed793c2d1972620ca530;p=llvm Fix gcc -Wparentheses warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352191 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/lib/CodeGen/GlobalISel/RegBankSelect.cpp index c4cd1a398dd..2c231709240 100644 --- a/lib/CodeGen/GlobalISel/RegBankSelect.cpp +++ b/lib/CodeGen/GlobalISel/RegBankSelect.cpp @@ -177,8 +177,8 @@ bool RegBankSelect::repairReg( // would require an agreement on the type of registers with the // target. Currently createVRegs just uses scalar types, and expects the // target code to replace this type (which we won't know about here) - assert(RegTy.isScalar() || - (RegTy.getNumElements() == ValMapping.NumBreakDowns) && + assert((RegTy.isScalar() || + RegTy.getNumElements() == ValMapping.NumBreakDowns) && "only basic vector breakdowns currently supported"); if (MO.isDef()) {