Skip to content

Commit

Permalink
[RISCV] Fix two abuses of llvm_unreachable
Browse files Browse the repository at this point in the history
Replace with report_fatal_error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311276 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
asb committed Aug 20, 2017
1 parent cc0899c commit 5f1fa48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RISCVAsmBackend : public MCAsmBackend {
void relaxInstruction(const MCInst &Inst, const MCSubtargetInfo &STI,
MCInst &Res) const override {

llvm_unreachable("RISCVAsmBackend::relaxInstruction() unimplemented");
report_fatal_error("RISCVAsmBackend::relaxInstruction() unimplemented");
}

bool writeNopData(uint64_t Count, MCObjectWriter *OW) const override;
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx,
const MCValue &Target,
const MCFixup &Fixup,
bool IsPCRel) const {
llvm_unreachable("invalid fixup kind!");
report_fatal_error("invalid fixup kind!");
}

MCObjectWriter *llvm::createRISCVELFObjectWriter(raw_pwrite_stream &OS,
Expand Down

0 comments on commit 5f1fa48

Please sign in to comment.