Don't crash on Sizeof of undefined type.

From-SVN: r167884
This commit is contained in:
Ian Lance Taylor 2010-12-16 00:02:33 +00:00
parent 70749e9cbe
commit cf15c41988

View file

@ -7069,7 +7069,8 @@ Builtin_call_expression::check_one_arg()
return false;
}
if (args->front()->is_error_expression()
|| args->front()->type()->is_error_type())
|| args->front()->type()->is_error_type()
|| args->front()->type()->is_undefined())
{
this->set_is_error();
return false;