summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/AsmParser
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-01-03 08:16:34 +0000
committerCraig Topper <craig.topper@gmail.com>2015-01-03 08:16:34 +0000
commit589ceee7f449db13c61995625be7bd2374d23595 (patch)
tree62bc8a3f454dd729ba593958353b8025996d545d /llvm/lib/Target/X86/AsmParser
parenta5754e6e82ae241b2c0ca3263a0d1ccca6ae1099 (diff)
downloadbcm5719-llvm-589ceee7f449db13c61995625be7bd2374d23595.tar.gz
bcm5719-llvm-589ceee7f449db13c61995625be7bd2374d23595.zip
Minor cleanup to all the switches after MatchInstructionImpl in all the AsmParsers.
Make sure they all have llvm_unreachable on the default path out of the switch. Remove unnecessary "default: break". Remove a 'return' after unreachable. Fix some indentation. llvm-svn: 225114
Diffstat (limited to 'llvm/lib/Target/X86/AsmParser')
-rw-r--r--llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 74b9c5a6ed4..bb738231baa 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -2432,7 +2432,7 @@ bool X86AsmParser::MatchAndEmitATTInstruction(SMLoc IDLoc, unsigned &Opcode,
switch (MatchInstructionImpl(Operands, Inst,
ErrorInfo, MatchingInlineAsm,
isParsingIntelSyntax())) {
- default: break;
+ default: llvm_unreachable("Unexpected match result!");
case Match_Success:
// Some instructions need post-processing to, for example, tweak which
// encoding is selected. Loop on it while changes happen so the
OpenPOWER on IntegriCloud