mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-01 04:23:14 +01:00
[svn r107] Getting .classinfo on a class instance now works (classinfo is stored in vtable)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user