Skip to content

Commit 4148158

Browse files
committed
[RegBankInfo] Add brackets around || in assert. NFC
1 parent f4418f8 commit 4148158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/RegisterBankInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ bool RegisterBankInfo::ValueMapping::verify(const RegisterBankInfo &RBI,
565565
OrigValueBitWidth =
566566
std::max(OrigValueBitWidth, PartMap.getHighBitIdx() + 1);
567567
}
568-
assert(MeaningfulBitWidth.isScalable() ||
569-
OrigValueBitWidth >= MeaningfulBitWidth &&
570-
"Meaningful bits not covered by the mapping");
568+
assert((MeaningfulBitWidth.isScalable() ||
569+
OrigValueBitWidth >= MeaningfulBitWidth) &&
570+
"Meaningful bits not covered by the mapping");
571571
APInt ValueMask(OrigValueBitWidth, 0);
572572
for (const RegisterBankInfo::PartialMapping &PartMap : *this) {
573573
// Check that the union of the partial mappings covers the whole value,

0 commit comments

Comments
 (0)