]> granicus.if.org Git - llvm/commitdiff
[RISCV][NFC] Remove unnecessary {} around single statement if block
authorAlex Bradbury <asb@lowrisc.org>
Tue, 21 Nov 2017 12:41:41 +0000 (12:41 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 21 Nov 2017 12:41:41 +0000 (12:41 +0000)
Almost too trivial to worry about, but it seems worth having consistency with
upcoming commits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318760 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp

index 003686ac2f31244e6e9f19158de0fb47a031409e..24c6c8db8a4ca3283f6febcbc11b0531e3040be1 100644 (file)
@@ -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