[llvm] 07be329 - Remove a redundant `default:` on an exhaustive switch(enum).
Eric Astor via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 30 13:12:48 PST 2019
Author: Eric Astor
Date: 2019-12-30T16:11:28-05:00
New Revision: 07be32961a694670885626e72faca6f0007f14c9
URL: https://github.com/llvm/llvm-project/commit/07be32961a694670885626e72faca6f0007f14c9
DIFF: https://github.com/llvm/llvm-project/commit/07be32961a694670885626e72faca6f0007f14c9.diff
LOG: Remove a redundant `default:` on an exhaustive switch(enum).
Added:
Modified:
llvm/lib/Target/X86/X86AsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index e9ad7a047613..3054e2f4f638 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -221,8 +221,6 @@ void X86AsmPrinter::PrintOperand(const MachineInstr *MI, unsigned OpNo,
case MachineOperand::MO_ConstantPoolIndex:
case MachineOperand::MO_GlobalAddress: {
switch (MI->getInlineAsmDialect()) {
- default:
- llvm_unreachable("unknown assembly dialect!");
case InlineAsm::AD_ATT:
O << '$';
break;
More information about the llvm-commits
mailing list