Skip to content

Commit 4f25e53

Browse files
committed
[AMDGPU] Make use of emitRemovedIntrinsicError. NFC.
Change-Id: I482bbf528255f2eacd3878ddfe7edb9a8f63d5c2
1 parent 7310501 commit 4f25e53

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6588,11 +6588,7 @@ SDValue SITargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
65886588
if (Subtarget->getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS)
65896589
return SDValue();
65906590

6591-
DiagnosticInfoUnsupported BadIntrin(
6592-
MF.getFunction(), "intrinsic not supported on subtarget",
6593-
DL.getDebugLoc());
6594-
DAG.getContext()->diagnose(BadIntrin);
6595-
return DAG.getUNDEF(VT);
6591+
return emitRemovedIntrinsicError(DAG, DL, VT);
65966592
}
65976593
case Intrinsic::amdgcn_ldexp:
65986594
return DAG.getNode(AMDGPUISD::LDEXP, DL, VT,

0 commit comments

Comments
 (0)