Adding missing AddressOfExpr::GetLValueType()

This commit is contained in:
Dmitry Babokin
2014-12-30 18:11:39 +03:00
parent fb535fdfd0
commit da83196996
3 changed files with 38 additions and 0 deletions

View File

@@ -7741,6 +7741,19 @@ AddressOfExpr::GetType() const {
}
const Type *
AddressOfExpr::GetLValueType() const {
if (!expr)
return NULL;
const Type *type = expr->GetType();
if (!type)
return NULL;
return PointerType::GetUniform(type);
}
Symbol *
AddressOfExpr::GetBaseSymbol() const {
return expr ? expr->GetBaseSymbol() : NULL;