Skip to content

Commit edbf3b3

Browse files

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AVR/AVRISelLowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ AVRTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
13491349
CCState CCInfo(CallConv, isVarArg, MF, RVLocs, Context);
13501350

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

13551355
SDValue

0 commit comments

Comments
 (0)