[llvm] r285806 - Removing a switch statement that contains a default label, but no case labels. Silences an MSVC warning; NFC.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 06:58:58 PDT 2016
Author: aaronballman
Date: Wed Nov 2 08:58:57 2016
New Revision: 285806
URL: http://llvm.org/viewvc/llvm-project?rev=285806&view=rev
Log:
Removing a switch statement that contains a default label, but no case labels. Silences an MSVC warning; NFC.
Modified:
llvm/trunk/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
Modified: llvm/trunk/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp?rev=285806&r1=285805&r2=285806&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp Wed Nov 2 08:58:57 2016
@@ -37,11 +37,7 @@ unsigned RISCVELFObjectWriter::getRelocT
const MCValue &Target,
const MCFixup &Fixup,
bool IsPCRel) const {
- // Determine the type of the relocation
- switch ((unsigned)Fixup.getKind()) {
- default:
- llvm_unreachable("invalid fixup kind!");
- }
+ llvm_unreachable("invalid fixup kind!");
}
MCObjectWriter *llvm::createRISCVELFObjectWriter(raw_pwrite_stream &OS,
More information about the llvm-commits
mailing list