[llvm] [AVR] Fix a crash in AVRInstrInfo::insertIndirectBranch (PR #67324)
Jianjian Guan via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 19:20:51 PDT 2023
================
@@ -573,7 +573,7 @@ void AVRInstrInfo::insertIndirectBranch(MachineBasicBlock &MBB,
if (STI.hasJMPCALL())
BuildMI(&MBB, DL, get(AVR::JMPk)).addMBB(&NewDestBB);
else
- report_fatal_error("cannot create long jump without FeatureJMPCALL");
+ BuildMI(&MBB, DL, get(AVR::RJMPk)).addMBB(&NewDestBB);
----------------
jacquesguan wrote:
Should we check the BrOffset? Because relative jump can only handle the range between -2k to+2k.
https://github.com/llvm/llvm-project/pull/67324
More information about the llvm-commits
mailing list