Remove dead check in Val::check_and_promote. (Coverity 1401810)

This commit is contained in:
Tim Wojtulewicz 2019-09-13 12:43:23 -07:00
parent c009cd3289
commit 53c82cc872

View file

@ -2998,8 +2998,6 @@ Val* check_and_promote(Val* v, const BroType* t, int is_init, const Location* ex
} }
else if ( t_tag == TYPE_INT ) else if ( t_tag == TYPE_INT )
promoted_v = val_mgr->GetInt(v->CoerceToInt()); promoted_v = val_mgr->GetInt(v->CoerceToInt());
else if ( t_tag == TYPE_BOOL )
promoted_v = val_mgr->GetBool(v->CoerceToInt());
else // enum else // enum
{ {
reporter->InternalError("bad internal type in check_and_promote()"); reporter->InternalError("bad internal type in check_and_promote()");