[llvm] r318760 - [RISCV][NFC] Remove unnecessary {} around single statement if block
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 04:41:41 PST 2017
Author: asb
Date: Tue Nov 21 04:41:41 2017
New Revision: 318760
URL: http://llvm.org/viewvc/llvm-project?rev=318760&view=rev
Log:
[RISCV][NFC] Remove unnecessary {} around single statement if block
Almost too trivial to worry about, but it seems worth having consistency with
upcoming commits.
Modified:
llvm/trunk/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
Modified: llvm/trunk/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp?rev=318760&r1=318759&r2=318760&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp (original)
+++ llvm/trunk/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp Tue Nov 21 04:41:41 2017
@@ -69,9 +69,8 @@ static const unsigned GPRDecoderTable[]
static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, uint64_t RegNo,
uint64_t Address,
const void *Decoder) {
- if (RegNo > sizeof(GPRDecoderTable)) {
+ if (RegNo > sizeof(GPRDecoderTable))
return MCDisassembler::Fail;
- }
// We must define our own mapping from RegNo to register identifier.
// Accessing index RegNo in the register class will work in the case that
More information about the llvm-commits
mailing list