For symbols that are references, return uniform ptr type as lvalue type.
Fixes issue #204.
This commit is contained in:
5
expr.cpp
5
expr.cpp
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user