forked from OSchip/llvm-project
parent
80f9f077e3
commit
a5ba0cb772
|
@ -247,6 +247,8 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) {
|
|||
const Expr *RV = S.getRetValue();
|
||||
if (RV)
|
||||
RetVal = EmitExpr(RV);
|
||||
else // Silence a bogus GCC warning.
|
||||
RetVal = RValue::get(0);
|
||||
|
||||
QualType FnRetTy = CurFuncDecl->getType().getCanonicalType();
|
||||
FnRetTy = cast<FunctionType>(FnRetTy)->getResultType();
|
||||
|
|
Loading…
Reference in New Issue