mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-11 09:23:13 +01:00
Fixed some minitest regressions.
This commit is contained in:
@@ -212,7 +212,17 @@ const llvm::Type* IrTypeClass::buildVtblType(Type* first, Array* vtbl_array)
|
||||
|
||||
for (; !it.done(); it.next())
|
||||
{
|
||||
FuncDeclaration* fd = it.get()->isFuncDeclaration();
|
||||
Dsymbol* dsym = it.get();
|
||||
if (dsym == NULL)
|
||||
{
|
||||
// FIXME
|
||||
// why is this null?
|
||||
// happens for mini/s.d
|
||||
types.push_back(getVoidPtrType());
|
||||
continue;
|
||||
}
|
||||
|
||||
FuncDeclaration* fd = dsym->isFuncDeclaration();
|
||||
assert(fd && "invalid vtbl entry");
|
||||
|
||||
IF_LOG Logger::println("Adding type of %s", fd->toPrettyChars());
|
||||
|
||||
Reference in New Issue
Block a user