diff options
Diffstat (limited to 'src/parser/symbol_table.h')
-rw-r--r-- | src/parser/symbol_table.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser/symbol_table.h b/src/parser/symbol_table.h index e4aec930e..d790a1c84 100644 --- a/src/parser/symbol_table.h +++ b/src/parser/symbol_table.h @@ -78,14 +78,12 @@ public: /** * Returns the last binding expression of the name. + * Requires the name to have a binding in the table. */ ObjectType getObject(const std::string name) throw () { - ObjectType result; table_iterator find = d_nameBindings.find(name); - if(find != d_nameBindings.end()) { - result = find->second.top(); - } - return result; + Assert(find != d_nameBindings.end()); + return find->second.top(); } /** |