]> granicus.if.org Git - clang/commitdiff
these implicit conversions are now explicit :)
authorChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 07:09:42 +0000 (07:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 07:09:42 +0000 (07:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41436 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGStmt.cpp

index 9ce2a67e33d1bae9fbbf831708c889c2dc47cc44..de50d71d9eb5c2996891bb8309b4040ed07f914d 100644 (file)
@@ -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 {