Fix crash with anonymous function parameters in function definitions.

Issue #135.
This commit is contained in:
Matt Pharr
2012-01-06 13:28:06 -08:00
parent 15cc812e37
commit 9b68b9087a
2 changed files with 33 additions and 23 deletions

2
decl.h
View File

@@ -153,6 +153,8 @@ public:
declarator and symbols for its arguments in *args. */
Symbol *GetFunctionInfo(DeclSpecs *ds, std::vector<Symbol *> *args);
Symbol *GetSymbolForFunctionParameter(int paramNum) const;
/** Returns the symbol associated with the declarator. */
Symbol *GetSymbol() const;