diff gen/irstate.cpp @ 103:855adfdb8d38 trunk

[svn r107] Getting .classinfo on a class instance now works (classinfo is stored in vtable)
author lindquist
date Sun, 18 Nov 2007 08:25:07 +0100
parents 5071469303d4
children 288fe1029e1f
line wrap: on
line diff
--- a/gen/irstate.cpp	Sun Nov 18 06:52:57 2007 +0100
+++ b/gen/irstate.cpp	Sun Nov 18 08:25:07 2007 +0100
@@ -105,16 +105,8 @@
 
 //////////////////////////////////////////////////////////////////////////////////////////
 
-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;