More tweaks.

This commit is contained in:
Robert Clipsham
2009-06-01 18:58:21 +01:00
parent c5be82c5ae
commit 91ddf6140a
8 changed files with 59 additions and 5 deletions

View File

@@ -178,12 +178,10 @@ LLConstant * IrStruct::getVtblInit()
// build the constant struct
constVtbl = llvm::ConstantStruct::get(constants, false);
// sanity check
#if 0
IF_LOG Logger::cout() << "constVtbl type: " << *constVtbl->getType() << std::endl;
IF_LOG Logger::cout() << "vtbl type: " << *type->irtype->isClass()->getVtbl() << std::endl;
IF_LOG Logger::cout() << "constVtbl type: " << *constVtbl->getType() << std::endl;
IF_LOG Logger::cout() << "vtbl type: " << *type->irtype->isClass()->getVtbl() << std::endl;
#endif
assert(constVtbl->getType() == type->irtype->isClass()->getVtbl() &&
"vtbl initializer type mismatch");