Skip to content

Commit a27116a

Browse files
arsenmgithub-actions[bot]
authored andcommitted
Automerge: AMDGPU: Use correct chain when emitting error on a call (#170645)
Return the input chain at the callsite, not the entry node chain. Presumably this could cause issues somewhere.
2 parents b85be8b + b8b7eda commit a27116a

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)