comparison gen/dvalue.h @ 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 eef8ac26c66c
comparison
equal deleted inserted replaced
600:311f16f26297 601:03a5e609eef3
160 160
161 virtual bool isLVal() { return true; } 161 virtual bool isLVal() { return true; }
162 virtual LLValue* getLVal() { return lvalue->isLVal() ? lvalue->getLVal() : lvalue->getRVal(); } 162 virtual LLValue* getLVal() { return lvalue->isLVal() ? lvalue->getLVal() : lvalue->getRVal(); }
163 virtual LLValue* getRVal() { return rvalue->getRVal(); } 163 virtual LLValue* getRVal() { return rvalue->getRVal(); }
164 164
165 Type*& getLType() { return lvalue->getType(); } 165 Type*& getLType();
166 Type*& getRType() { return rvalue->getType(); } 166 Type*& getRType() { return rvalue->getType(); }
167 virtual Type*& getType() { return getRType(); } 167 virtual Type*& getType() { return getRType(); }
168 virtual DLRValue* isLRValue() { return this; } 168 virtual DLRValue* isLRValue() { return this; }
169 }; 169 };
170 170