Don't crash on if statement with erroneous conditional.
From-SVN: r170044
This commit is contained in:
parent
ced2ec3b26
commit
942e57396b
1 changed files with 3 additions and 1 deletions
|
@ -2994,7 +2994,9 @@ If_statement::do_may_fall_through() const
|
|||
tree
|
||||
If_statement::do_get_tree(Translate_context* context)
|
||||
{
|
||||
gcc_assert(this->cond_ == NULL || this->cond_->type()->is_boolean_type());
|
||||
gcc_assert(this->cond_ == NULL
|
||||
|| this->cond_->type()->is_boolean_type()
|
||||
|| this->cond_->type()->is_error_type());
|
||||
tree cond_tree = (this->cond_ == NULL
|
||||
? boolean_true_node
|
||||
: this->cond_->get_tree(context));
|
||||
|
|
Loading…
Add table
Reference in a new issue