forked from OSchip/llvm-project
these implicit conversions are now explicit :)
llvm-svn: 41436
This commit is contained in:
parent
cf3da8495a
commit
44d3e74e22
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue