AMDGPU/GlobalISel: Account for multiple defs when finding intrinsic ID

llvm-svn: 363578
This commit is contained in:
Matt Arsenault 2019-06-17 17:01:27 +00:00
parent 5d00c3060e
commit fee1949b35
1 changed files with 1 additions and 2 deletions

View File

@ -270,8 +270,7 @@ bool AMDGPUInstructionSelector::selectG_INSERT(MachineInstr &I) const {
bool AMDGPUInstructionSelector::selectG_INTRINSIC(MachineInstr &I,
CodeGenCoverage &CoverageInfo) const {
unsigned IntrinsicID = I.getOperand(1).getIntrinsicID();
unsigned IntrinsicID = I.getOperand(I.getNumExplicitDefs()).getIntrinsicID();
switch (IntrinsicID) {
default:
break;