diff options
author | David Green <david.green@arm.com> | 2024-06-21 09:26:45 +0100 |
---|---|---|
committer | David Green <david.green@arm.com> | 2024-06-21 09:26:45 +0100 |
commit | c6a257fe0fc9ba677d96929a34dedc5f243aad7d (patch) | |
tree | 5b4825af657edbcc64318835dfd46582d36052e1 /llvm/lib | |
parent | 09cdbd2a5c2c8f821475d3d7e1741aee9a20d0f0 (diff) | |
download | llvm-c6a257fe0fc9ba677d96929a34dedc5f243aad7d.zip llvm-c6a257fe0fc9ba677d96929a34dedc5f243aad7d.tar.gz llvm-c6a257fe0fc9ba677d96929a34dedc5f243aad7d.tar.bz2 |
[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");
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def b/llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def index d243ca5..82066b4 100644 --- a/llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def +++ b/llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def @@ -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) |