Skip to content

Commit

Permalink
Removing a switch statement that contains a default label, but no cas…
Browse files Browse the repository at this point in the history
…e labels. Silences an MSVC warning; NFC.

llvm-svn: 285806
  • Loading branch information
AaronBallman committed Nov 2, 2016
1 parent c17e0b6 commit 3ac3a7e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx,
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,
Expand Down

0 comments on commit 3ac3a7e

Please sign in to comment.