Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed May 4, 2018
1 parent 5782d85 commit edbf3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/AVR/AVRISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ AVRTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
CCState CCInfo(CallConv, isVarArg, MF, RVLocs, Context);

auto CCFunction = CCAssignFnForReturn(CallConv);
return CCInfo.CheckReturn(Outs, CCFunction);
return !MF.getFunction().getReturnType()->isStructTy() && CCInfo.CheckReturn(Outs, CCFunction);
}

SDValue
Expand Down

0 comments on commit edbf3b3

Please sign in to comment.