Mercurial > projects > ldc
diff gen/structs.cpp @ 585:fbb1a366cfbc
Complex number should now follow the D ABI on x86. They're also treated as first class values now. Big change.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 09 Sep 2008 16:49:47 -0700 |
parents | a34078905d01 |
children | 26fce59fe80a |
line wrap: on
line diff
--- a/gen/structs.cpp Mon Sep 08 20:38:55 2008 +0200 +++ b/gen/structs.cpp Tue Sep 09 16:49:47 2008 -0700 @@ -60,6 +60,10 @@ const LLType* llt = getPtrToType(DtoType(t)); const LLType* st = getPtrToType(DtoType(sd->type)); + + Logger::cout() << "ptr = " << *ptr << '\n'; + Logger::cout() << "st = " << *st << '\n'; + if (ptr->getType() != st) { assert(sd->ir.irStruct->hasUnions); ptr = gIR->ir->CreateBitCast(ptr, st, "tmp");