]> granicus.if.org Git - llvm/commitdiff
[RISCV] Add break; to the last switch case
authorFangrui Song <maskray@google.com>
Mon, 1 Jul 2019 11:41:07 +0000 (11:41 +0000)
committerFangrui Song <maskray@google.com>
Mon, 1 Jul 2019 11:41:07 +0000 (11:41 +0000)
As suggested by jrtc27 in the post-commit review of D60528.

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

lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

index b4d206db54c2d01ecedf462fbe1fdccf74888f56..4367eebdbd211d0ac9a180d5d26977299dc9f17d 100644 (file)
@@ -1761,6 +1761,7 @@ bool RISCVAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
   case RISCV::PseudoAddTPRel:
     if (checkPseudoAddTPRel(Inst, Operands))
       return true;
+    break;
   }
 
   emitToStreamer(Out, Inst);