diff options
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 5fdc61b46f..df62e4aa1d 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -332,9 +332,6 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) { // Emit the result value, even if unused, to evalute the side effects. const Expr *RV = S.getRetValue(); - QualType FnRetTy = CurFuncDecl->getType().getCanonicalType(); - FnRetTy = cast<FunctionType>(FnRetTy)->getResultType(); - if (FnRetTy->isVoidType()) { // If the function returns void, emit ret void. Builder.CreateRetVoid(); |