[llvm] r291320 - [AVR] Parenthesize a boolean expression

Dylan McKay via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 16:55:28 PST 2017


Author: dylanmckay
Date: Fri Jan  6 18:55:28 2017
New Revision: 291320

URL: http://llvm.org/viewvc/llvm-project?rev=291320&view=rev
Log:
[AVR] Parenthesize a boolean expression

Without the parentheses, clang would emit warnings while compiling the
code.

Modified:
    llvm/trunk/lib/Target/AVR/AVRISelDAGToDAG.cpp

Modified: llvm/trunk/lib/Target/AVR/AVRISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRISelDAGToDAG.cpp?rev=291320&r1=291319&r2=291320&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRISelDAGToDAG.cpp Fri Jan  6 18:55:28 2017
@@ -203,8 +203,8 @@ unsigned AVRDAGToDAGISel::selectIndexedP
 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();




More information about the llvm-commits mailing list