[llvm] 2ab6fa3 - [M68k][AsmParser][NFC] Remove redundant default cases
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 22 11:51:27 PDT 2021
Author: Min-Yih Hsu
Date: 2021-04-22T11:50:48-07:00
New Revision: 2ab6fa3dcdfd32963239927a2b82249188962227
URL: https://github.com/llvm/llvm-project/commit/2ab6fa3dcdfd32963239927a2b82249188962227
DIFF: https://github.com/llvm/llvm-project/commit/2ab6fa3dcdfd32963239927a2b82249188962227.diff
LOG: [M68k][AsmParser][NFC] Remove redundant default cases
Remove redundant default cases since all enumeration values have
been covered (-Wcovered-switch-default). NFC.
Added:
Modified:
llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp b/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
index 3792da3c0f2ad..aaec0a95d8e58 100644
--- a/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
+++ b/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
@@ -234,8 +234,6 @@ void M68kMemOp::print(raw_ostream &OS) const {
OS << OuterDisp << "(%" << OuterReg << ", " << InnerReg << "." << Size
<< ", " << InnerDisp << ")";
break;
- default:
- llvm_unreachable("unknown MemOp kind");
}
}
@@ -858,8 +856,5 @@ void M68kOperand::print(raw_ostream &OS) const {
case Kind::MemOp:
MemOp.print(OS);
break;
-
- default:
- llvm_unreachable("unhandled operand kind");
}
}
More information about the llvm-commits
mailing list