Skip to content

Commit 5e53b83

Browse files
committed
Drop braces, including the existing ones.
1 parent 29e4fcc commit 5e53b83

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,10 @@ static DecodeStatus decodeCLUIImmOperand(MCInst &Inst, uint32_t Imm,
453453
int64_t Address,
454454
const MCDisassembler *Decoder) {
455455
assert(isUInt<6>(Imm) && "Invalid immediate");
456-
if (Imm == 0) {
456+
if (Imm == 0)
457457
return MCDisassembler::Fail;
458-
}
459-
if (Imm > 31) {
458+
if (Imm > 31)
460459
Imm = (SignExtend64<6>(Imm) & 0xfffff);
461-
}
462460
Inst.addOperand(MCOperand::createImm(Imm));
463461
return MCDisassembler::Success;
464462
}

0 commit comments

Comments
 (0)