From e72608b7851bc133579ac32896290b2c8908e260 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 26 Aug 2007 07:09:42 +0000 Subject: [PATCH] these implicit conversions are now explicit :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41436 91177308-0d34-0410-b5e6-96231b3b80d8 --- CodeGen/CGStmt.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/CodeGen/CGStmt.cpp b/CodeGen/CGStmt.cpp index 9ce2a67e33..de50d71d9e 100644 --- a/CodeGen/CGStmt.cpp +++ b/CodeGen/CGStmt.cpp @@ -295,9 +295,6 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) { else Builder.CreateRet(llvm::UndefValue::get(RetTy)); } else { - // Do implicit conversions to the returned type. - RetVal = EmitConversion(RetVal, RV->getType(), FnRetTy); - if (RetVal.isScalar()) { Builder.CreateRet(RetVal.getVal()); } else { -- 2.40.0