commit | 30f910e88e5c28955bbd91b8d9a306a5d5ef2356 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Oct 16 05:52:41 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Oct 16 05:52:41 2006 +0000 |
tree | b159ebd17d1baa933d3182b4120481eb828ba9ee | |
parent | 2dacc3ff2efb981deea1188f097c7e5c8330990f [diff] [blame] |
implement action callbacks for almost all the stmts. llvm-svn: 38993
diff --git a/clang/Sema/Sema.cpp b/clang/Sema/Sema.cpp index e6b09c8..f42ec10 100644 --- a/clang/Sema/Sema.cpp +++ b/clang/Sema/Sema.cpp
@@ -139,7 +139,9 @@ Action::DeclTy * ASTBuilder::ParseFunctionDefinition(Scope *S, Declarator &D, StmtTy *Body) { FunctionDecl *FD = (FunctionDecl *)ParseDeclarator(S, D, 0, 0); - // TODO: more stuff. + + FD->setBody((Stmt*)Body); + return FD; }