OSDN Git Service

Add parentheses to silence buildbot warning
authorMatthew Simpson <mssimpso@codeaurora.org>
Wed, 27 Apr 2016 16:25:04 +0000 (16:25 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Wed, 27 Apr 2016 16:25:04 +0000 (16:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64TargetTransformInfo.cpp

index 8e832ff..1684d2f 100644 (file)
@@ -296,8 +296,8 @@ int AArch64TTIImpl::getExtractWithExtendCost(unsigned Opcode, Type *Dst,
                                              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.