mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
_aaEq was added to runtime/internal/aaA.d which forwards to TypeInfo_AssociativeArray.equals in genobj.d. On the codegen side, DtoAAEquals was added to gen/aa.cpp and is called from EqualExp::toElem in gen/toir.cpp. I assume that the frontend will produce an error if == is used on associative arrays of different type. This fixes DMD bug 1429.
10 lines
326 B
C
10 lines
326 B
C
#ifndef LDC_GEN_AA_H
|
|
#define LDC_GEN_AA_H
|
|
|
|
DValue* DtoAAIndex(Loc& loc, Type* type, DValue* aa, DValue* key, bool lvalue);
|
|
DValue* DtoAAIn(Loc& loc, Type* type, DValue* aa, DValue* key);
|
|
void DtoAARemove(Loc& loc, DValue* aa, DValue* key);
|
|
LLValue* DtoAAEquals(Loc& loc, TOK op, DValue* l, DValue* r);
|
|
|
|
#endif // LDC_GEN_AA_H
|