Mercurial > projects > ldc
diff gen/classes.cpp @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | b77664331d06 |
children | 2df270e1ba59 |
line wrap: on
line diff
--- a/gen/classes.cpp Mon May 05 00:56:53 2008 +0200 +++ b/gen/classes.cpp Mon May 05 07:36:29 2008 +0200 @@ -1094,13 +1094,13 @@ if (idxs.empty()) idxs.push_back(0); - const llvm::Type* llt = getPtrToType(DtoType(t)); const llvm::Type* st = DtoType(cd->type); if (ptr->getType() != st) { - assert(gIR->irDsymbol[cd].irStruct->hasUnions); + //assert(gIR->irDsymbol[cd].irStruct->hasUnions); ptr = gIR->ir->CreateBitCast(ptr, st, "tmp"); } + const llvm::Type* llt = getPtrToType(DtoType(t)); unsigned dataoffset = 2; IrStruct* irstruct = gIR->irDsymbol[cd].irStruct;