changeset 16:bd5f9f81c24b

Oops.. while was generating incorrect code Need to add a "br label %while_cond" just before the while_cond label
author Anders Halager <halager@gmail.com>
date Fri, 18 Apr 2008 15:53:30 +0200
parents a51bdf15a33d
children ab5f876b6e84
files gen/LLVMGen.d
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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(":");