revert r177211 due to its potential issues
llvm-svn: 177222
This commit is contained in:
@@ -564,9 +564,6 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
|
||||
SourceRange BodyRange;
|
||||
if (Stmt *Body = FD->getBody()) BodyRange = Body->getSourceRange();
|
||||
|
||||
// Reset CalleeWithThisReturn.
|
||||
CalleeWithThisReturn = 0;
|
||||
|
||||
// Emit the standard function prologue.
|
||||
StartFunction(GD, ResTy, Fn, FnInfo, Args, BodyRange.getBegin());
|
||||
|
||||
@@ -618,8 +615,6 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
|
||||
|
||||
// Emit the standard function epilogue.
|
||||
FinishFunction(BodyRange.getEnd());
|
||||
// Reset CalleeWithThisReturn.
|
||||
CalleeWithThisReturn = 0;
|
||||
|
||||
// If we haven't marked the function nothrow through other means, do
|
||||
// a quick pass now to see if we can.
|
||||
|
||||
Reference in New Issue
Block a user