diff gen/tollvm.c @ 24:25bb577878e8 trunk

[svn r28] * Fixed accessing aggregate fields. it was still not quite right. hopefully is now :)
author lindquist
date Thu, 04 Oct 2007 10:13:21 +0200
parents 8d45266bbabe
children 92408a3a2bac
line wrap: on
line diff
--- a/gen/tollvm.c	Thu Oct 04 09:24:15 2007 +0200
+++ b/gen/tollvm.c	Thu Oct 04 10:13:21 2007 +0200
@@ -471,7 +471,7 @@
         Logger::println("vars[%d] = %s", i, vd->toChars());
 
         std::vector<unsigned> idxs;
-        si->ad->offsetToIndex(vd->offset, idxs);
+        si->ad->offsetToIndex(vd->type, vd->offset, idxs);
         assert(idxs.size() == 1);
         unsigned idx = idxs[0];