comparison gen/toir.cpp @ 682:518b8cc84369

Remove too strict type check for DotTypeExp. Fixes run/t/typedef_19_B.
author Christian Kamm <kamm incasoftware de>
date Sat, 11 Oct 2008 22:44:17 +0200
parents 96e425004a68
children ed9a9e6dd1cc
comparison
equal deleted inserted replaced
681:ca4a816f2440 682:518b8cc84369
2441 2441
2442 DValue* DotTypeExp::toElem(IRState* p) 2442 DValue* DotTypeExp::toElem(IRState* p)
2443 { 2443 {
2444 Type* t = sym->getType(); 2444 Type* t = sym->getType();
2445 assert(t); 2445 assert(t);
2446 assert(t == e1->type && t == type);
2447 return e1->toElem(p); 2446 return e1->toElem(p);
2448 } 2447 }
2449 2448
2450 ////////////////////////////////////////////////////////////////////////////////////////// 2449 //////////////////////////////////////////////////////////////////////////////////////////
2451 2450