mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 04:43:14 +01:00
[svn r328] Fixed an issue with interfaces where the vtable type of a interface implemented could be invalid. Fixes several tango modules like, FileStream, ServerSocket
and most tina cluster modules :)
This commit is contained in:
@@ -4,15 +4,11 @@
|
||||
#include "ir/irstruct.h"
|
||||
#include "gen/irstate.h"
|
||||
|
||||
#if OPAQUE_VTBLS
|
||||
IrInterface::IrInterface(BaseClass* b, const llvm::ArrayType* vt)
|
||||
#else
|
||||
IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt)
|
||||
#endif
|
||||
IrInterface::IrInterface(BaseClass* b)
|
||||
{
|
||||
base = b;
|
||||
decl = b->base;
|
||||
vtblTy = vt;
|
||||
vtblTy = NULL;
|
||||
vtblInit = NULL;
|
||||
vtbl = NULL;
|
||||
infoTy = NULL;
|
||||
@@ -24,6 +20,7 @@ IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt)
|
||||
|
||||
IrInterface::~IrInterface()
|
||||
{
|
||||
delete vtblTy;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user