Skip to content

Commit 5803335

Browse files
committed
[GlobalISel] Add brackets around || in assert. NFC
1 parent b2ef23c commit 5803335

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6595,8 +6595,9 @@ bool CombinerHelper::matchRedundantBinOpInEquality(MachineInstr &MI,
65956595
static std::optional<unsigned>
65966596
getMinUselessShift(KnownBits ValueKB, unsigned Opcode,
65976597
std::optional<int64_t> &Result) {
6598-
assert(Opcode == TargetOpcode::G_SHL || Opcode == TargetOpcode::G_LSHR ||
6599-
Opcode == TargetOpcode::G_ASHR && "Expect G_SHL, G_LSHR or G_ASHR.");
6598+
assert((Opcode == TargetOpcode::G_SHL || Opcode == TargetOpcode::G_LSHR ||
6599+
Opcode == TargetOpcode::G_ASHR) &&
6600+
"Expect G_SHL, G_LSHR or G_ASHR.");
66006601
auto SignificantBits = 0;
66016602
switch (Opcode) {
66026603
case TargetOpcode::G_SHL:

0 commit comments

Comments
 (0)