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