# HG changeset patch # User Anders Halager # Date 1208526810 -7200 # Node ID bd5f9f81c24b2aed96d193c1a42b399bd5cc8e45 # Parent a51bdf15a33dbe532e3af134caed4783d28478a6 Oops.. while was generating incorrect code Need to add a "br label %while_cond" just before the while_cond label diff -r a51bdf15a33d -r bd5f9f81c24b gen/LLVMGen.d --- a/gen/LLVMGen.d Fri Apr 18 15:25:10 2008 +0200 +++ b/gen/LLVMGen.d Fri Apr 18 15:53:30 2008 +0200 @@ -378,6 +378,9 @@ auto cond_label = table.find("while_cond"); auto done_label = table.find("while_done"); + printBeginLine("br label %"); + printEndLine(cond_label); + printBeginLine(cond_label); printEndLine(":");