Skip to content

Commit ee7c26e

Browse files
arsenmkcloudy0717
authored andcommitted
AMDGPU: Use correct chain when emitting error on a call (llvm#170645)
Return the input chain at the callsite, not the entry node chain. Presumably this could cause issues somewhere.
1 parent d916c8a commit ee7c26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ SDValue AMDGPUTargetLowering::lowerUnhandledCall(CallLoweringInfo &CLI,
14121412
InVals.push_back(DAG.getPOISON(Arg.VT));
14131413
}
14141414

1415-
return DAG.getEntryNode();
1415+
return CLI.Chain;
14161416
}
14171417

14181418
SDValue AMDGPUTargetLowering::LowerCall(CallLoweringInfo &CLI,

0 commit comments

Comments
 (0)