summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-03 16:21:15 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-03 16:21:15 +0000
commitc94294310339f609d8b5af898d779961a6e7c701 (patch)
tree55752860b6a03806132b840e933294f025ad463f /llvm/lib/Target
parent8d9890ab69d2ba48c365dd187fa592719b35102a (diff)
downloadbcm5719-llvm-c94294310339f609d8b5af898d779961a6e7c701.tar.gz
bcm5719-llvm-c94294310339f609d8b5af898d779961a6e7c701.zip
Add braces to the case statement.
llvm-svn: 163116
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp b/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
index f9796a641ce..1ee6e2d5da1 100644
--- a/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
+++ b/llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
@@ -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!");
}
OpenPOWER on IntegriCloud