Fix compiler crash from malformed program.

This commit is contained in:
Matt Pharr
2012-01-26 09:57:13 -08:00
parent 177e6312b4
commit 061e68bc77

View File

@@ -266,6 +266,7 @@ Declarator::GetFunctionInfo(DeclSpecs *ds, std::vector<Symbol *> *funArgs) {
funArgs->push_back(sym); funArgs->push_back(sym);
} }
if (funSym != NULL)
funSym->type = funSym->type->ResolveUnboundVariability(Type::Varying); funSym->type = funSym->type->ResolveUnboundVariability(Type::Varying);
return funSym; return funSym;