Skip to content

Commit c6a257f

Browse files
committed
[AArch64] Fix || Add brackets for || inside of assert
Fixes: llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def:185:12: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] assert(!Size.isScalable() || MinSize >= 128 ~~~~~~~~~~~~~~ && "Scalable vector types should have size of at least 128 bits");
1 parent 09cdbd2 commit c6a257f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ unsigned AArch64GenRegisterBankInfo::getRegBankBaseIdxOffset(unsigned RBIdx,
181181
}
182182
if (RBIdx == PMI_FirstFPR) {
183183
const unsigned MinSize = Size.getKnownMinValue();
184-
assert(!Size.isScalable() || MinSize >= 128
185-
&& "Scalable vector types should have size of at least 128 bits");
184+
assert((!Size.isScalable() || MinSize >= 128) &&
185+
"Scalable vector types should have size of at least 128 bits");
186186
if (MinSize <= 16)
187187
return 0;
188188
if (MinSize <= 32)

0 commit comments

Comments
 (0)