Commit cf15c419 by Ian Lance Taylor

Don't crash on Sizeof of undefined type.

From-SVN: r167884
parent 70749e9c
...@@ -7069,7 +7069,8 @@ Builtin_call_expression::check_one_arg() ...@@ -7069,7 +7069,8 @@ Builtin_call_expression::check_one_arg()
return false; return false;
} }
if (args->front()->is_error_expression() 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(); this->set_is_error();
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment