mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Replace general error with more accurate error message (does not resolve issue)
This commit is contained in:
@@ -57,8 +57,8 @@ public:
|
||||
Symbol* toSymbol();
|
||||
dt_t **toInstanceDt(dt_t **pdt);
|
||||
dt_t **toDt2(dt_t **pdt, ClassDeclaration *cd, Dts *dts);
|
||||
elem *toElem(IRState *irs);
|
||||
#endif
|
||||
elem *toElem(IRState *irs);
|
||||
};
|
||||
|
||||
/// Return index of the field, or -1 if not found
|
||||
|
||||
15
gen/toir.cpp
15
gen/toir.cpp
@@ -3150,6 +3150,21 @@ LLConstant* StructLiteralExp::toConstElem(IRState* p)
|
||||
return sd->ir.irAggr->createInitializerConstant(varInits);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
DValue* ClassReferenceExp::toElem(IRState* p)
|
||||
{
|
||||
IF_LOG Logger::print("ClassReferenceExp::toElem: %s @ %s\n",
|
||||
toChars(), type->toChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
error("ClassReferenceExp::toElem is not yet implemented");
|
||||
fatal();
|
||||
return 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
llvm::Constant* ClassReferenceExp::toConstElem(IRState *p)
|
||||
{
|
||||
IF_LOG Logger::print("ClassReferenceExp::toConstElem: %s @ %s\n",
|
||||
|
||||
Reference in New Issue
Block a user