Added an assert
This commit is contained in:
parent
036200e959
commit
fa3805282a
1 changed files with 2 additions and 0 deletions
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue