Generate correct IR for do-while loops
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Apr 2010 01:07:27 +0000 (18:07 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Apr 2010 18:42:36 +0000 (11:42 -0700)
commit8c46ed24906ee10dd2f2cfaf4cf9803eca1ba523
tree71eac354c7f81b6811f2dbbbc471e9b7353881f2
parent4cf20cd37c12c6243a09d52739d3d47f030a1799
Generate correct IR for do-while loops

Previously the same code was generated for a while loop and a do-while
loop.  This pulls the code that generates the conditional break into a
separate method.  This method is called either at the beginning or the
end depending on the loop type.

Reported-by: Kenneth Graunke <kenneth@whitecape.org>
ast.h
ast_to_hir.cpp