Skip to content

Commit b8b7eda

Browse files
authored
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.
1 parent 81a0863 commit b8b7eda

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)