Added an assert

This commit is contained in:
John Wiegley 2012-03-05 05:53:41 -06:00
parent 036200e959
commit fa3805282a

View file

@ -89,6 +89,8 @@ expr_t::ptr_op_t expr_t::op_t::compile(scope_t& scope, const int depth)
}
#endif
assert(kind < LAST);
if (is_ident()) {
DEBUG("expr.compile", "Lookup: " << as_ident() << " in " << scope_ptr);
if (ptr_op_t def = scope_ptr->lookup(symbol_t::FUNCTION, as_ident())) {