Mercurial > projects > ldc
diff gen/classes.h @ 705:5a2983f97498
Fixed weird struct problem from downs, see mini/compile_structs1.d
Rewrote DtoIndexStruct/Class , the old implementation were way too complex for what we really need now - since the DotVar changes.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 14 Oct 2008 15:35:49 +0200 |
parents | eef8ac26c66c |
children | 79758fd2f48a |
line wrap: on
line diff
--- a/gen/classes.h Tue Oct 14 13:21:14 2008 +0200 +++ b/gen/classes.h Tue Oct 14 15:35:49 2008 +0200 @@ -37,7 +37,7 @@ DValue* DtoCastInterfaceToObject(DValue* val, Type* to); DValue* DtoDynamicCastInterface(DValue* val, Type* to); -LLValue* DtoIndexClass(LLValue* ptr, ClassDeclaration* cd, Type* t, unsigned os, DStructIndexVector& idxs); +LLValue* DtoIndexClass(LLValue* src, ClassDeclaration* sd, VarDeclaration* vd); LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl);