[llvm] r267734 - Add parentheses to silence buildbot warning

Matthew Simpson via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 09:25:04 PDT 2016


Author: mssimpso
Date: Wed Apr 27 11:25:04 2016
New Revision: 267734

URL: http://llvm.org/viewvc/llvm-project?rev=267734&view=rev
Log:
Add parentheses to silence buildbot warning

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp?rev=267734&r1=267733&r2=267734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp Wed Apr 27 11:25:04 2016
@@ -296,8 +296,8 @@ int AArch64TTIImpl::getExtractWithExtend
                                              unsigned Index) {
 
   // Make sure we were given a valid extend opcode.
-  assert(Opcode == Instruction::SExt ||
-         Opcode == Instruction::ZExt && "Invalid opcode");
+  assert((Opcode == Instruction::SExt || Opcode == Instruction::ZExt) &&
+         "Invalid opcode");
 
   // We are extending an element we extract from a vector, so the source type
   // of the extend is the element type of the vector.




More information about the llvm-commits mailing list