Changed an assert into a proper exception

This commit is contained in:
John Wiegley 2011-07-17 15:28:11 -05:00
parent 976ba4907d
commit c4a3a7bbe5

View file

@ -421,10 +421,8 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus, const int depth)
break;
}
case LAST:
default:
assert(false);
break;
throw_(calc_error, _("Unexpected expr node '%1'") << op_context(this));
}
#if defined(DEBUG_ON)