mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
Fixed DLRValue::getLType did not handle the lvalue being a LRValue itself properly.
This commit is contained in:
@@ -68,3 +68,15 @@ LLValue* DConstValue::getRVal()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Type*& DLRValue::getLType()
|
||||
{
|
||||
if (DLRValue* lr = lvalue->isLRValue())
|
||||
{
|
||||
return lr->getLType();
|
||||
}
|
||||
else
|
||||
{
|
||||
return lvalue->getType();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user