From fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 Mar 2012 05:53:41 -0600 Subject: Added an assert --- src/op.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/op.cc') diff --git a/src/op.cc b/src/op.cc index bd2cc32f..c8e099e7 100644 --- a/src/op.cc +++ b/src/op.cc @@ -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())) { -- cgit v1.2.3