Mercurial > projects > ldc
comparison gen/dvalue.cpp @ 601:03a5e609eef3
Fixed DLRValue::getLType did not handle the lvalue being a LRValue itself properly.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 15 Sep 2008 15:17:41 +0200 |
parents | fbb1a366cfbc |
children | 30b42a283c8e |
comparison
equal
deleted
inserted
replaced
600:311f16f26297 | 601:03a5e609eef3 |
---|---|
66 return c; | 66 return c; |
67 } | 67 } |
68 | 68 |
69 ///////////////////////////////////////////////////////////////////////////////////////////////// | 69 ///////////////////////////////////////////////////////////////////////////////////////////////// |
70 ///////////////////////////////////////////////////////////////////////////////////////////////// | 70 ///////////////////////////////////////////////////////////////////////////////////////////////// |
71 | |
72 Type*& DLRValue::getLType() | |
73 { | |
74 if (DLRValue* lr = lvalue->isLRValue()) | |
75 { | |
76 return lr->getLType(); | |
77 } | |
78 else | |
79 { | |
80 return lvalue->getType(); | |
81 } | |
82 } |