Sema::ActOnFinishFunctionBody(): Since we no longer synthesize a FunctionDecl for each method, remove the unconditional initialization to 0 and corresponding comment.

llvm-svn: 45008
This commit is contained in:
Steve Naroff 2007-12-13 18:18:56 +00:00
parent 2f4ab7148c
commit d78c81b6de
1 changed files with 2 additions and 4 deletions

View File

@ -1016,13 +1016,11 @@ Sema::DeclTy *Sema::ActOnFinishFunctionBody(DeclTy *D, StmtTy *Body) {
if (FunctionDecl *FD = dyn_cast<FunctionDecl>(dcl)) {
FD->setBody((Stmt*)Body);
assert(FD == CurFunctionDecl && "Function parsing confused");
CurFunctionDecl = 0;
} else if (ObjcMethodDecl *MD = dyn_cast<ObjcMethodDecl>(dcl)) {
MD->setBody((Stmt*)Body);
CurMethodDecl = 0;
}
// This is unconditional, since methods have a corresponding function decl.
CurFunctionDecl = 0;
}
// Verify and clean out per-function state.
// Check goto/label use.