changeset 667:9c48213cfd96

Add DotTypeExp
author Christian Kamm <kamm incasoftware de>
date Tue, 07 Oct 2008 20:19:19 +0200
parents 0d934394ada1
children 216b14b9a773
files gen/toir.cpp
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/toir.cpp	Tue Oct 07 18:41:00 2008 +0200
+++ b/gen/toir.cpp	Tue Oct 07 20:19:19 2008 +0200
@@ -2438,9 +2438,18 @@
 
 //////////////////////////////////////////////////////////////////////////////////////////
 
+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);