diff options
author | Chris Dyer <redpony@gmail.com> | 2014-04-07 00:54:52 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-04-07 00:54:52 -0400 |
commit | cb85bfbe908f6001a92b0af99ea03f369416059e (patch) | |
tree | d4635f2fb73b0991d593c59f68b0de0773f3d499 /decoder/tree2string_translator.cc | |
parent | 54e527dbce04fdac6a5dc30c491b53d405d42931 (diff) |
clean up dead TRule code
Diffstat (limited to 'decoder/tree2string_translator.cc')
-rw-r--r-- | decoder/tree2string_translator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/tree2string_translator.cc b/decoder/tree2string_translator.cc index 4cd584fb..f288ab4e 100644 --- a/decoder/tree2string_translator.cc +++ b/decoder/tree2string_translator.cc @@ -174,6 +174,7 @@ struct Tree2StringTranslatorImpl { q.push(ParserState(input_tree.begin(), g.get())); unique.insert(q.back()); } + if (q.size() == 0) return false; unsigned tree_top = q.front().input_node_idx; while(!q.empty()) { ParserState& s = q.front(); |