Skip to content

Commit 99bb789

Browse files
committed
[VPlan] Fix gcc -Wparentheses warning
Wihtout this gcc complained with ../lib/Transforms/Vectorize/VPlan.h: In constructor 'llvm::VPWidenMemoryRecipe::VPWidenMemoryRecipe(unsigned char, llvm::Instruction&, std::initializer_list<llvm::VPValue*>, bool, bool, const llvm::VPIRMetadata&, llvm::DebugLoc)': ../lib/Transforms/Vectorize/VPlan.h:3216:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 3216 | !Reverse && | ~~~~~~~~~^~ 3217 | "Reversed acccess without VPVectorEndPointerRecipe address?"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent 7557304 commit 99bb789

File tree

1 file changed

+2
-3
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,9 +3212,8 @@ class LLVM_ABI_FOR_TEST VPWidenMemoryRecipe : public VPRecipeBase,
32123212
Alignment(getLoadStoreAlignment(&I)), Consecutive(Consecutive),
32133213
Reverse(Reverse) {
32143214
assert((Consecutive || !Reverse) && "Reverse implies consecutive");
3215-
assert(isa<VPVectorEndPointerRecipe>(getAddr()) ||
3216-
!Reverse &&
3217-
"Reversed acccess without VPVectorEndPointerRecipe address?");
3215+
assert((isa<VPVectorEndPointerRecipe>(getAddr()) || !Reverse) &&
3216+
"Reversed acccess without VPVectorEndPointerRecipe address?");
32183217
}
32193218

32203219
public:

0 commit comments

Comments
 (0)