Add DotTypeExp

This commit is contained in:
Christian Kamm
2008-10-07 20:19:19 +02:00
parent ae9a2901df
commit b90799a376

View File

@@ -2438,9 +2438,18 @@ DValue* BoolExp::toElem(IRState* p)
//////////////////////////////////////////////////////////////////////////////////////////
DValue* DotTypeExp::toElem(IRState* p)
{
Type* t = sym->getType();
assert(t);
assert(t == e1->type && t == type);
return e1->toElem(p);
}
//////////////////////////////////////////////////////////////////////////////////////////
#define STUB(x) DValue *x::toElem(IRState * p) {error("Exp type "#x" not implemented: %s", toChars()); fatal(); return 0; }
STUB(Expression);
STUB(DotTypeExp);
STUB(TypeDotIdExp);
STUB(ScopeExp);
STUB(TypeExp);