DMD issue 3086 - TypeInfo opEquals returns incorrect results

This commit is contained in:
Alexey Prokhin
2011-07-19 10:14:13 +04:00
parent aef7e0ee36
commit 596aad3738

View File

@@ -541,6 +541,8 @@ void TypeInfoFunctionDeclaration::llvmDefine()
RTTIBuilder b(Type::typeinfofunction);
// TypeInfo base
b.push_typeinfo(tinfo->nextOf());
// string deco
b.push_string(tinfo->deco);
// finish
b.finalize(ir.irGlobal);
}
@@ -558,6 +560,8 @@ void TypeInfoDelegateDeclaration::llvmDefine()
RTTIBuilder b(Type::typeinfodelegate);
// TypeInfo base
b.push_typeinfo(ret_type);
// string deco
b.push_string(tinfo->deco);
// finish
b.finalize(ir.irGlobal);
}