Loop bodies, then-statements, and else-statements are not lists
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 10 May 2010 18:10:26 +0000 (11:10 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 10 May 2010 18:10:26 +0000 (11:10 -0700)
commit4f9d72fa9e2a4ff1a2aca6de8ee4fa93639c75f1
tree0836881617d459540235b5252669f8d15aa93fb9
parentf4e06981cc85e28a61a1d94681989fb8e45dc310
Loop bodies, then-statements, and else-statements are not lists

The statement making up a loop body, a then-statement, or an
else-statement are single nodes.  If the statement is a block, the
single node will be an ast_compound_statement.  There is no need to
loop at the top level when processing these statements.
ast_to_hir.cpp