mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 11:16:06 +00:00
[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:
parent
09cdbd2a5c
commit
c6a257fe0f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user