mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-02 02:23:13 +01:00
Do not leave __xopEquals for structs undefined.
This commit is contained in:
committed by
Kai Nacke
parent
d918115e64
commit
e36385214c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user