Mercurial > projects > ldc
comparison gen/dvalue.cpp @ 1151:3cf0066e6faf
- Versioned Expresssion::toElem with #if IN_DMD/IN_LLVM.
- Eliminated the DLRValue DValue.
- Implemented proactive handling of l-value CastExpS.
- Minor tweak in runtime memory.d .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Sat, 28 Mar 2009 05:00:43 +0100 |
parents | 30b42a283c8e |
children | f5729209a1d4 |
comparison
equal
deleted
inserted
replaced
1150:2a687353c84d | 1151:3cf0066e6faf |
---|---|
76 return c; | 76 return c; |
77 } | 77 } |
78 | 78 |
79 ///////////////////////////////////////////////////////////////////////////////////////////////// | 79 ///////////////////////////////////////////////////////////////////////////////////////////////// |
80 ///////////////////////////////////////////////////////////////////////////////////////////////// | 80 ///////////////////////////////////////////////////////////////////////////////////////////////// |
81 | |
82 Type*& DLRValue::getLType() | |
83 { | |
84 if (DLRValue* lr = lvalue->isLRValue()) | |
85 { | |
86 return lr->getLType(); | |
87 } | |
88 else | |
89 { | |
90 return lvalue->getType(); | |
91 } | |
92 } |