AMDGPU: Avoid report_fatal_error for reporting libcalls (#145134)

This commit is contained in:
Matt Arsenault 2025-06-22 23:10:18 +09:00 committed by GitHub
parent ee5dcdc275
commit 584a2c2e7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3805,7 +3805,7 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI,
}
if (!CLI.CB)
report_fatal_error("unsupported libcall legalization");
return lowerUnhandledCall(CLI, InVals, "unsupported libcall legalization");
if (IsTailCall && MF.getTarget().Options.GuaranteedTailCallOpt) {
return lowerUnhandledCall(CLI, InVals,