Add braces to the case statement.
authorChad Rosier <mcrosier@apple.com>
Mon, 3 Sep 2012 16:21:15 +0000 (16:21 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 3 Sep 2012 16:21:15 +0000 (16:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163116 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp

index f9796a641ce8b9d84b989adf09df632a7f8221ff..1ee6e2d5da13af82da06a09e3f16b332bd6a9541 100644 (file)
@@ -329,7 +329,7 @@ MatchAndEmitInstruction(SMLoc IDLoc,
     return Error(IDLoc, "instruction use requires an option to be enabled");
   case Match_MnemonicFail:
       return Error(IDLoc, "unrecognized instruction mnemonic");
-  case Match_InvalidOperand:
+  case Match_InvalidOperand: {
     SMLoc ErrorLoc = IDLoc;
     if (ErrorInfo != ~0U) {
       if (ErrorInfo >= Operands.size())
@@ -341,6 +341,7 @@ MatchAndEmitInstruction(SMLoc IDLoc,
 
     return Error(ErrorLoc, "invalid operand for instruction");
   }
+  }
 
   llvm_unreachable("Implement any new match types added!");
 }