[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:
Tomas Lindquist Olsen
2008-06-28 03:45:18 +02:00
parent a3c7b8b369
commit 86d299a641
3 changed files with 14 additions and 28 deletions

View File

@@ -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;
}
//////////////////////////////////////////////////////////////////////////////