From 1f2fdbe0d44cb2c1361e678331d45d549638f293 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sat, 21 Jun 2025 11:19:16 +0900 Subject: [PATCH] AMDGPU: Avoid report_fatal_error for reporting libcalls --- llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index 07d79d677104a..b752ccd6e14b1 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -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,