reduce indentation

llvm-svn: 106967
This commit is contained in:
Chris Lattner 2010-06-26 23:13:19 +00:00
parent 6c5abe88bf
commit 726b3d09cd
1 changed files with 42 additions and 41 deletions

View File

@ -800,10 +800,13 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI,
void CodeGenFunction::EmitFunctionEpilog(const CGFunctionInfo &FI,
llvm::Value *ReturnValue) {
llvm::Value *RV = 0;
// Functions with no result always return void.
if (ReturnValue) {
if (ReturnValue == 0) {
Builder.CreateRetVoid();
return;
}
llvm::Value *RV = 0;
QualType RetTy = FI.getReturnType();
const ABIArgInfo &RetAI = FI.getReturnInfo();
@ -837,14 +840,12 @@ void CodeGenFunction::EmitFunctionEpilog(const CGFunctionInfo &FI,
case ABIArgInfo::Expand:
assert(0 && "Invalid ABI kind for return argument");
}
}
if (RV) {
if (RV)
Builder.CreateRet(RV);
} else {
else
Builder.CreateRetVoid();
}
}
RValue CodeGenFunction::EmitDelegateCallArg(const VarDecl *Param) {
// StartFunction converted the ABI-lowered parameter(s) into a