Don't crash on invalid comparison of complex constants.
From-SVN: r170037
This commit is contained in:
parent
d3c839259b
commit
b3a2810309
1 changed files with 1 additions and 1 deletions
|
@ -5159,7 +5159,7 @@ Binary_expression::do_lower(Gogo*, Named_object*, int)
|
|||
{
|
||||
// May be a type error--let it be diagnosed later.
|
||||
}
|
||||
else if (is_comparison)
|
||||
else if (op == OPERATOR_EQEQ || op == OPERATOR_NOTEQ)
|
||||
{
|
||||
bool b = Binary_expression::compare_complex(op,
|
||||
(left_type != NULL
|
||||
|
|
Loading…
Add table
Reference in a new issue