]> granicus.if.org Git - llvm/commitdiff
[AVR] Parenthesize a boolean expression
authorDylan McKay <dylanmckay34@gmail.com>
Sat, 7 Jan 2017 00:55:28 +0000 (00:55 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Sat, 7 Jan 2017 00:55:28 +0000 (00:55 +0000)
Without the parentheses, clang would emit warnings while compiling the
code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291320 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AVR/AVRISelDAGToDAG.cpp

index 156a21dfecfea3b7fb0823d98201d1067c4541ac..462a7d57d2de5ebe120a0cb74a5ab708558601fe 100644 (file)
@@ -203,8 +203,8 @@ unsigned AVRDAGToDAGISel::selectIndexedProgMemLoad(const LoadSDNode *LD,
 bool AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(const SDValue &Op,
                                                    unsigned ConstraintCode,
                                                    std::vector<SDValue> &OutOps) {
-  assert(ConstraintCode == InlineAsm::Constraint_m ||
-         ConstraintCode == InlineAsm::Constraint_Q &&
+  assert((ConstraintCode == InlineAsm::Constraint_m ||
+         ConstraintCode == InlineAsm::Constraint_Q) &&
       "Unexpected asm memory constraint");
 
   MachineRegisterInfo &RI = MF->getRegInfo();