[svn r107] Getting .classinfo on a class instance now works (classinfo is stored in vtable)

This commit is contained in:
Tomas Lindquist Olsen
2007-11-18 08:25:07 +01:00
parent c99938debf
commit 6da09c01b3
8 changed files with 84 additions and 32 deletions

View File

@@ -105,16 +105,8 @@ bool IRState::scopereturned()
//////////////////////////////////////////////////////////////////////////////////////////
IRStruct::IRStruct()
: recty(llvm::OpaqueType::get())
{
type = 0;
defined = false;
constinited = false;
}
IRStruct::IRStruct(Type* t)
: recty(llvm::OpaqueType::get())
: recty((t->llvmType != NULL) ? *t->llvmType : llvm::OpaqueType::get())
{
type = t;
defined = false;