Skip to content

Commit d35f2c4

Browse files
author
Martin Wehking
authored
Remove constant local variable (#83850)
Remove isThisReturn, which always has the value false. Replace its uses with false directly.
1 parent 9a20612 commit d35f2c4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,6 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI,
35983598
bool &IsTailCall = CLI.IsTailCall;
35993599
bool IsVarArg = CLI.IsVarArg;
36003600
bool IsSibCall = false;
3601-
bool IsThisReturn = false;
36023601
MachineFunction &MF = DAG.getMachineFunction();
36033602

36043603
if (Callee.isUndef() || isNullConstant(Callee)) {
@@ -3888,8 +3887,7 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI,
38883887
// Handle result values, copying them out of physregs into vregs that we
38893888
// return.
38903889
return LowerCallResult(Chain, InGlue, CallConv, IsVarArg, Ins, DL, DAG,
3891-
InVals, IsThisReturn,
3892-
IsThisReturn ? OutVals[0] : SDValue());
3890+
InVals, /*IsThisReturn=*/false, SDValue());
38933891
}
38943892

38953893
// This is identical to the default implementation in ExpandDYNAMIC_STACKALLOC,

0 commit comments

Comments
 (0)