Skip to content

Commit

Permalink
[MC][ARC][Mips] Replace MCContext::reportFatalError calls with report…
Browse files Browse the repository at this point in the history
…Error
  • Loading branch information
MaskRay committed Jan 15, 2022
1 parent 0ee679e commit 349006b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
Expand Up @@ -47,7 +47,7 @@ static void signed_width(unsigned Width, uint64_t Value,
" to " + std::to_string(Max) + ")";

if (Ctx) {
Ctx->reportFatalError(Fixup.getLoc(), Diagnostic);
Ctx->reportError(Fixup.getLoc(), Diagnostic);
} else {
llvm_unreachable(Diagnostic.c_str());
}
Expand All @@ -66,7 +66,7 @@ static void unsigned_width(unsigned Width, uint64_t Value,
" (expected an integer in the range 0 to " + std::to_string(Max) + ")";

if (Ctx) {
Ctx->reportFatalError(Fixup.getLoc(), Diagnostic);
Ctx->reportError(Fixup.getLoc(), Diagnostic);
} else {
llvm_unreachable(Diagnostic.c_str());
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
Expand Up @@ -197,7 +197,7 @@ static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
Value = (int64_t)Value / 2;
// We now check if Value can be encoded as a 26-bit signed immediate.
if (!isInt<26>(Value)) {
Ctx.reportFatalError(Fixup.getLoc(), "out of range PC26 fixup");
Ctx.reportError(Fixup.getLoc(), "out of range PC26 fixup");
return 0;
}
break;
Expand Down

0 comments on commit 349006b

Please sign in to comment.