these implicit conversions are now explicit :)

llvm-svn: 41436
This commit is contained in:
Chris Lattner 2007-08-26 07:09:42 +00:00
parent cf3da8495a
commit 44d3e74e22
1 changed files with 0 additions and 3 deletions

View File

@ -295,9 +295,6 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) {
else else
Builder.CreateRet(llvm::UndefValue::get(RetTy)); Builder.CreateRet(llvm::UndefValue::get(RetTy));
} else { } else {
// Do implicit conversions to the returned type.
RetVal = EmitConversion(RetVal, RV->getType(), FnRetTy);
if (RetVal.isScalar()) { if (RetVal.isScalar()) {
Builder.CreateRet(RetVal.getVal()); Builder.CreateRet(RetVal.getVal());
} else { } else {