Mercurial > projects > ldc
comparison gen/toir.cpp @ 151:d11848349f97 trunk
[svn r157] Fixed the nasty type==NULL bug :D
author | lindquist |
---|---|
date | Mon, 24 Mar 2008 20:48:40 +0100 |
parents | 2c336566ffed |
children | 7f92f477ff53 |
comparison
equal
deleted
inserted
replaced
150:2c336566ffed | 151:d11848349f97 |
---|---|
1197 | 1197 |
1198 ////////////////////////////////////////////////////////////////////////////////////////// | 1198 ////////////////////////////////////////////////////////////////////////////////////////// |
1199 | 1199 |
1200 DValue* CastExp::toElem(IRState* p) | 1200 DValue* CastExp::toElem(IRState* p) |
1201 { | 1201 { |
1202 assert(type); | |
1203 Logger::print("CastExp::toElem: %s | %s\n", toChars(), type->toChars()); | 1202 Logger::print("CastExp::toElem: %s | %s\n", toChars(), type->toChars()); |
1204 LOG_SCOPE; | 1203 LOG_SCOPE; |
1205 | 1204 |
1206 DValue* u = e1->toElem(p); | 1205 DValue* u = e1->toElem(p); |
1207 DValue* v = DtoCast(u, to); | 1206 DValue* v = DtoCast(u, to); |