diff gen/toir.c @ 5:3d60e549b0c2 trunk

[svn r9] added a preliminary rebuild profile. llvmdc-posix - very handy :) added readme.txt added test/g.d - tests passing strings to functions fixed test/dgs.d and test/funcptr, now all tests except those related to typeinfo should work.
author lindquist
date Wed, 05 Sep 2007 07:16:31 +0200
parents e116aa1488e6
children 35d93ce68cf4
line wrap: on
line diff
--- a/gen/toir.c	Mon Sep 03 17:34:30 2007 +0200
+++ b/gen/toir.c	Wed Sep 05 07:16:31 2007 +0200
@@ -920,7 +920,7 @@
             assert(llargs[j] != 0);
         }
         else {
-            llargs[j] = arg->mem;
+            llargs[j] = arg->mem ? arg->mem : arg->val;
             assert(llargs[j] != 0);
         }