Don't crash on Sizeof of undefined type.
From-SVN: r167884
This commit is contained in:
parent
70749e9cbe
commit
cf15c41988
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue