need to add scope for arguments, but now is not the right time.
llvm-svn: 39125
This commit is contained in:
parent
da59c2f161
commit
7014fb8f07
|
@ -379,6 +379,11 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) {
|
|||
const DeclaratorTypeInfo &FnTypeInfo = D.getTypeObject(0);
|
||||
assert(FnTypeInfo.Kind == DeclaratorTypeInfo::Function &&
|
||||
"This isn't a function declarator!");
|
||||
|
||||
// FIXME: Enter a scope for the arguments.
|
||||
//EnterScope();
|
||||
|
||||
|
||||
|
||||
// If this declaration was formed with a K&R-style identifier list for the
|
||||
// arguments, parse declarations for all of the args next.
|
||||
|
@ -412,6 +417,9 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) {
|
|||
StmtResult FnBody = ParseCompoundStatement();
|
||||
if (FnBody.isInvalid) return 0;
|
||||
|
||||
// FIXME: Leave the argument scope.
|
||||
// ExitScope();
|
||||
|
||||
// TODO: Pass argument information.
|
||||
return Actions.ParseFunctionDefinition(CurScope, D, FnBody.Val);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue