[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");
This commit is contained in:
David Green 2024-06-21 09:26:45 +01:00
parent 09cdbd2a5c
commit c6a257fe0f

View File

@ -181,8 +181,8 @@ unsigned AArch64GenRegisterBankInfo::getRegBankBaseIdxOffset(unsigned RBIdx,
}
if (RBIdx == PMI_FirstFPR) {
const unsigned MinSize = Size.getKnownMinValue();
assert(!Size.isScalable() || MinSize >= 128
&& "Scalable vector types should have size of at least 128 bits");
assert((!Size.isScalable() || MinSize >= 128) &&
"Scalable vector types should have size of at least 128 bits");
if (MinSize <= 16)
return 0;
if (MinSize <= 32)