diff --git a/gen/declarations.cpp b/gen/declarations.cpp index f209d1a6..83df49f9 100644 --- a/gen/declarations.cpp +++ b/gen/declarations.cpp @@ -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); } }