@@ -2417,8 +2417,6 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
24172417 Callee = DAG.getNode (ISD::ZERO_EXTEND, dl, MVT::i64 , Callee);
24182418 }
24192419
2420- // Returns a chain & a glue for retval copy to use.
2421- SDVTList NodeTys = DAG.getVTList (MVT::Other, MVT::Glue);
24222420 SmallVector<SDValue, 8 > Ops;
24232421
24242422 if (!IsSibcall && isTailCall && !IsMustTail) {
@@ -2523,7 +2521,7 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
25232521 // should be computed from returns not tail calls. Consider a void
25242522 // function making a tail call to a function returning int.
25252523 MF.getFrameInfo ().setHasTailCall ();
2526- SDValue Ret = DAG.getNode (X86ISD::TC_RETURN, dl, NodeTys , Ops);
2524+ SDValue Ret = DAG.getNode (X86ISD::TC_RETURN, dl, MVT::Other , Ops);
25272525
25282526 if (IsCFICall)
25292527 Ret.getNode ()->setCFIType (CLI.CFIType ->getZExtValue ());
@@ -2533,6 +2531,8 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
25332531 return Ret;
25342532 }
25352533
2534+ // Returns a chain & a glue for retval copy to use.
2535+ SDVTList NodeTys = DAG.getVTList (MVT::Other, MVT::Glue);
25362536 if (HasNoCfCheck && IsCFProtectionSupported && IsIndirectCall) {
25372537 Chain = DAG.getNode (X86ISD::NT_CALL, dl, NodeTys, Ops);
25382538 } else if (CLI.CB && objcarc::hasAttachedCallOpBundle (CLI.CB )) {
0 commit comments