Replace general error with more accurate error message (does not resolve issue)

This commit is contained in:
Kai Nacke
2013-11-28 08:04:49 +01:00
parent e1464fe458
commit 1a36f9b394
2 changed files with 16 additions and 1 deletions

View File

@@ -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

View File

@@ -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",