Do not leave __xopEquals for structs undefined.

This commit is contained in:
David Nadlinger
2013-10-20 00:36:34 +02:00
committed by Kai Nacke
parent d918115e64
commit e36385214c

View File

@@ -99,6 +99,12 @@ void StructDeclaration::codegen(IRState *p)
// emit typeinfo
DtoTypeInfoOf(type);
// Emit __xopEquals/__xopCmp.
if (xeq && xeq != xerreq)
xeq->codegen(p);
if (xcmp && xcmp != xerrcmp)
xcmp->codegen(p);
}
}