From b90799a376e32945e0d32c9cf1189d40816d803b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 7 Oct 2008 20:19:19 +0200 Subject: [PATCH] Add DotTypeExp --- gen/toir.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 7419579f..e0209beb 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -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);