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
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue