Mercurial > projects > ldc
diff ir/irtypestruct.cpp @ 1270:dd135ff697fa
Fixed class default initializers and type generation. Bug #260 is fixed.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Mon, 27 Apr 2009 03:40:40 +0200 |
parents | b8a51aa44d4c |
children | 8fb39f7f1a7c |
line wrap: on
line diff
--- a/ir/irtypestruct.cpp Mon Apr 27 01:43:29 2009 +0200 +++ b/ir/irtypestruct.cpp Mon Apr 27 03:40:40 2009 +0200 @@ -64,10 +64,15 @@ bool var_offset_sort_cb(const VarDeclaration* v1, const VarDeclaration* v2) { - if (v1 && v2) return v1->offset < v2->offset; - else return false; + if (v1 && v2) + return v1->offset < v2->offset; + else + return false; } +// this is pretty much the exact same thing we need to do for fields in each +// base class of a class + const llvm::Type* IrTypeStruct::buildType() { IF_LOG Logger::println("Building struct type %s @ %s",