For symbols that are references, return uniform ptr type as lvalue type.

Fixes issue #204.
This commit is contained in:
Matt Pharr
2012-03-27 08:52:14 -07:00
parent 0ad8dbbfc9
commit d8a8f3a996

View File

@@ -7209,7 +7209,10 @@ SymbolExpr::GetLValueType() const {
if (symbol == NULL)
return NULL;
return PointerType::GetUniform(symbol->type);
if (dynamic_cast<const ReferenceType *>(symbol->type) != NULL)
return PointerType::GetUniform(symbol->type->GetReferenceTarget());
else
return PointerType::GetUniform(symbol->type);
}