Fix type of addressof reference
This commit is contained in:
parent
2e3aea9d96
commit
ff6bb8ccd5
|
@ -1170,6 +1170,8 @@ Declaration* Declaration::BuildAddressOfPointer(void)
|
||||||
{
|
{
|
||||||
if (mType == DT_TYPE_ARRAY)
|
if (mType == DT_TYPE_ARRAY)
|
||||||
return BuildArrayPointer();
|
return BuildArrayPointer();
|
||||||
|
else if (mType == DT_TYPE_REFERENCE)
|
||||||
|
return mBase->BuildAddressOfPointer();
|
||||||
else
|
else
|
||||||
return BuildPointer(mLocation);
|
return BuildPointer(mLocation);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue