[llvm] r352191 - Fix gcc -Wparentheses warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 25 03:34:58 PST 2019


Author: rksimon
Date: Fri Jan 25 03:34:58 2019
New Revision: 352191

URL: http://llvm.org/viewvc/llvm-project?rev=352191&view=rev
Log:
Fix gcc -Wparentheses warning. NFCI.

Modified:
    llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp

Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp?rev=352191&r1=352190&r2=352191&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp Fri Jan 25 03:34:58 2019
@@ -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()) {




More information about the llvm-commits mailing list